C1Datagrid virtualization/recycling tun off/on

Posted by: sebastian-jn.k on 22 March 2020, 6:48 pm EST

  • Posted 22 March 2020, 6:48 pm EST

    Hi there,
    i'm using c1Datagrid and i need layout informations for each row/cell.
    The problem is, if the grid is not fully visible, there are no layout informations for not visible rows (rowpresenter is null).
    With the MSDatagrid i can turn off the row/col virtualization, so the whole grid is rendered and i can get all layout informations through looping the grid.
    How do i can achieve this with the C1Datagrid, looks like u'r using your own recycling panel for this task?
    How do i can disable virtalization/recycling so i can looping through the grid with all layout information?
    I need the layout informations for my C1PrintDocument (printing job) and i don't want use the print methods from the grid.
  • Marked as Answer

    Replied 23 March 2020, 2:39 pm EST


    C1DataGrid, by design, creates only the cells/rows/columns which are currently need to be displayed(i.e. virtualization). However, if you need to create all the rows/columns irrespective of the display area, you can simply put the C1DataGrid inside a ScrollViewer as follows:
    <ScrollViewer Grid.Row = "1">
    <c1:C1DataGrid ItemsSource="{Binding Products}"/>

    Hope it'll help.


Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels