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.
Syncfusion Feedback

GridGroupingControl and HasChanges

Thread ID:

Created:

Updated:

Platform:

Replies:

28333 Apr 29,2005 08:33 AM UTC Apr 29,2005 05:44 PM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On April 29, 2005 08:33 AM UTC

Hi, i got a Application with a GGC and a button which returns the changed rows of the underlying DataSet. When i edit a cell inside of that grid and directly press the button, the changes are not shown. When i click onto another cell prior to clicking the button it seems like the changes are then populated to the underlying DataSet and the changed row gets listed. What i tried is to disable the button as long as a cell is edited. I used TableControlCurrentCellStartEditing and TableControlCurrentCellEditingComplete events. But this is not always working. I would like to be able to directly click the button out of the edited cell and have the changes populated to the underlying grid so the changed row gets listed. Is there a way to tell the grid to update or populate the changes programmatically ? I already tried GGC.Update() but with no luck. Or is there a "better" way to tell if the grid is currently edited or not ? Thanks, Oliver

Administrator [Syncfusion]
Replied On April 29, 2005 05:44 PM UTC

Is the button you are clicking on a toolbar, or is it a button control where its CausesValidation is set to false? In either of these cases, clicking the button will not trigger a validation of the last active control, and this would prevent the data from being pushed into the datasource. One thing you can try is to call this.Validate();//this refers to the Form holding the grid at the start of your button handler code. This should trigger a validation on the last active control.

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.

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

;