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

Saving a record - Parent Child Grids

Hi, I have two Grid Controls in the form, Say "Category" and "Sub Category". First User will add a Category then he will add sub categories for that Category. If the user is clicking on a new category row Check if there are any unsaved changes in "Subcategories" Grid. If so, then prompt user to save If user selects Yes, then Save the category record & Subcategories Grid (loop thro all the records) Thanks and Regards Rajesh

1 Reply

AD Administrator Syncfusion Team January 24, 2005 07:18 AM UTC

You can handle the CurrentCellMoving event in the Category grid. There, check catGrid.CurrentCell.MoveFromRowIndex and catGrid.CurrentCell.MoveToRowIndex. If they are not equal, then do what ever work you need to do to save the information in the subcategory for the MoveFromRowIndex subcategory grid.

Live Chat Icon For mobile
Up arrow icon