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. Image for the cookie policy date
close icon

Accessing the value of lastSyncText

Hello,

Inside the GridCurrentCell class there's a internal member lastSyncText that holds the value of the current cell while it is being edited. I want access to this value. Is this possible?

Thanks,
Ben


4 Replies

BE Ben February 27, 2008 10:44 PM UTC

Hello,

Alternatively, if there is any other way to tell whatever text has been entered into a cell but not yet saved, that would be good.

I'm using a virtual grid, if that matters.

Thanks,
Ben



BE Ben March 2, 2008 11:08 PM UTC

Poke



BE Ben March 6, 2008 11:24 PM UTC

Hello,

Has anyone got an answer for me yet?

Thanks,
Ben



JA Jay March 8, 2008 04:39 PM UTC

You could get the current entered value (on each key stoke) in the GridCurrentCellValidating event.


this.gridControl1.CurrentCellValidateString += new GridCurrentCellValidateStringEventHandler(gridControl1_CurrentCellValidateString);

void gridControl1_CurrentCellValidateString(object sender, GridCurrentCellValidateStringEventArgs e)
{
GridCurrentCell cc = this.gridControl1.CurrentCell;

//New value:
Console.WriteLine(e.Text);

//OldValue:
Console.WriteLine(this.gridControl1[cc.RowIndex, cc.ColIndex].Text);
}


Best,
Jay


Loader.
Live Chat Icon For mobile
Up arrow icon