Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
How to indicate to the main form that a grid is dirty
posted

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

Parents
  • 469350
    Verified Answer
    Offline posted

    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.

     

     

Reply Children