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
220
UltraGridState
posted

Hi,

the currentstate of my ultrawingrid returns the value of 596113, could you please tell me what does this mean?

I was trying to do following -

if ugCanopySpecies.CurrentState = UltraGridState.InEdit then ugCanopySpecies.ActiveRow.Update()

but it did not worked. I was just trying to find out a way that it should call the update only when there are edits in the grid or could you please tell me if there is any other good to find out whether grid have edits before calling the update?

thanks,

Mandeep. 

 

 

 

 

Parents
No Data
Reply
  • 37774
    posted

    The CurrentState property is a bitwise combination of various different states, so you would need to check that the bitwise AND of UltraGridState.InEdit and CurrentState is not 0/nothing.  With that being said, I don't think that this will tell you that there are edits to the grid.  I'm not aware of a method or property that tells you which rows have pending changes, though unless your UpdateMode property is set to OnUpdate, the grid will generally push its changes to the underlying source after you leave the row.  You might be able to track that a row has changes in the AfterCellUpdate, or possibly AfterExitEditMode.

    -Matt

Children