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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Saving a record - Parent Child Grids

Thread ID:





23900 Jan 24,2005 05:59 AM UTC Jan 24,2005 07:18 AM UTC WinForms 1
Tags: GridControl
Asked On January 24, 2005 05:59 AM UTC

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

Administrator [Syncfusion]
Replied On 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.


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon