Greetings,
I am writing a VB .NET application that has a parent form with an Ultra grid that contains child information. I've used controls such as Farpoint grid that have a property called isDirty that you can check when saving the entire form. However, I do not see a similar property for the UltraGrid looking through the object browser and the documentaton.
That being the case, what is the method(s) used to indicate to the parent form that an UltraGrid is dirty?
Thanks
Hi,
I'm not sure what you are asking. What exactly would an IsDirty property on the grid do? The grid only deals with the local data source, not the back end. So if you are trying to prompt the user to save changes when they close the form, then the thing to do would be to call UpdateData on the grid to force it to save all pending changes to the data source. Then check the DataSource to see if there are any pending changes that need to be propagated to the back end.
Thanks for the advice. I'm so use to Farpoint's grid with its IsDirty flag, that I assumed yours had one as well.
Well, I think there is a DataChanged flag on the grid cell and possibly on the row. So you could check the ActiveRow. But this really isn't of much use. Any changes that were made to the grid and saved to the data source, already would not be reflected by this value. It's really changes in the data source that are of primary concern.