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

Saving a record - Parent Child Grids

Thread ID:

Created:

Updated:

Platform:

Replies:

23900 Jan 24,2005 12:59 AM Jan 24,2005 02:18 AM Windows Forms 1
loading
Tags: GridControl
Guru
Asked On January 24, 2005 12:59 AM

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 02:18 AM

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.

CONFIRMATION

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.

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.

;