The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
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.