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
ADAdministrator 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.