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 -
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.
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
thanks for the quick response Matt.
I don't want to find out which rows are dirty, i just want to know in general whether grid have edits or not, is it possible?
Well this is still the same basic principle in that in order for the grid to know if it has changes, it would have to track whether there are rows that are dirty. There is not anything that I am aware of that would account for this in the grid.