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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Deleting child rows in bound hierarchical grid

Thread ID:





26794 Mar 31,2005 03:39 PM UTC Mar 31,2005 04:24 PM UTC WinForms 1
Tags: GridControl
Asked On March 31, 2005 03:39 PM UTC

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.

Administrator [Syncfusion]
Replied On March 31, 2005 04:24 PM UTC

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon