Vertical Scrollbar behavior using MouseWheel in nested DataGrid

Posted by: Swapnil.Walwadkar on 18 July 2023, 5:49 pm EST

    • Post Options:
    • Link

    Posted 18 July 2023, 5:49 pm EST

    Hello,

    I have nested Datagrid in my application. (Parent → Child → Grand Child).

    When all the rows of all 3 Datagrids are expanded, I can see a vertical scrollbar. This scrollbar is applicable to only the ‘Parent’ grid. So, whenever I scroll down by using MouseWheel, it directly jumps to the next row of ‘Parent’ Datagrid.

    I would like to apply the scrollbar to apply all 3 Datagrids so that the scrolling via MouseWheel becomes smooth.

    Please help fix this scrollbar issue.

  • Posted 20 July 2023, 8:48 am EST

    Hi Swapnil,

    You can set C1DataGrid’s VerticalScrollStep property to set the scrolling steps in pixel values. Please refer to the following code for the same:

    datagrid.VerticalScrollStep = new DataGridScrollStep(20, DataGridScrollStepUnitType.Pixel);

    Kindly refer to the attached sample for the same. (See NestedDatagrid.zip)

    Thanks & Regards,

    Aastha

  • Posted 23 July 2023, 3:07 pm EST

    Hello Aastha,

    Thank you. It is working.

Need extra support?

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

Learn More

Forum Channels