We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Deleting child rows in bound hierarchical grid

I am attempting to delete a child row in a hierarchical databound grid, but after highlighting the row and predding the Delete key, nothing appears to happen. The grid remains unchanged.

1 Reply

AD Administrator Syncfusion Team March 31, 2005 11:24 AM

The default delete support only works for the root grid. If you want to click a row header on a child table and delete it, then you will have to handle this yourself. It requires catching teh RowsDeleting event and doing the work there. Here is a minimal sample showing how you can do this. You use information in the GridBoundRecordState for the row to do the work. You also have to force teh parent node to open and close so it refreshes itself showing one less row. This is done in a ''silent'' mode so there is no flashing caused by closing and opening the node. http://www.syncfusion.com/Support/user/uploads/GDBG_HierDelete_cc3dd0d2.zip

Loader.
Live Chat Icon For mobile
Up arrow icon