Nested grid on demand

Consider I have 1000 rows in sfDataGrid and I don't want to load sub grid items to all these 1000 items while loading. So What I need is while clicking a cell in the row load sub-grid for that item only. Is that possible?


1 Reply

SB Sweatha Bharathi Syncfusion Team June 20, 2023 01:46 PM UTC

Hi Jayakrishnan ,


Your requirement can be achieved by our MasterDetailsView DataGrid. The SfDataGrid provides support for representing hierarchical data in the form of nested tables using the Master-Details view. You can expand or collapse the nested table (DetailsViewDataGrid) using an expander column in a row or programmatically. In DetailsViewDataGrid, SubGrid’s are loaded only when we expand the ParentGrid. We have attached a sample screenshot and provided a sample based on your requirement. Please review the sample and let us know if you require any further assistance.


UG Link : https://help.syncfusion.com/windowsforms/datagrid/masterdetailsview







Attachment: MasterDetailsView_24c3129f.zip

Loader.
Up arrow icon