Why doesn't the NewValue in the event arguments hold the value in the editor? Isn't it a bit convoluted to have to access the editor for the value?
Hello,
Please attach me an isolated sample application.
Looking forward to hearing from you.
Can you try it with a template column with editor template as text box?
Hello Michael,
I have tried the same logic using the NewValue property and everything goes as expected :
if (e.NewValue.Equals(e.Cell.Value.ToString()))
{
MessageBox.Show("equals");
}
else
MessageBox.Show("different");
If you have any other questions, feel free to ask.
Thanks for responding. I'm aware of that.
However, per the documentation (http://help.infragistics.com/Help/NetAdvantage/Silverlight/2010.2/CLR4.0/html/InfragisticsSL4.Controls.Grids.XamGrid.v10.2~Infragistics.Controls.Grids.XamGrid~CellExitingEditMode_EV.html)
It does not correctly get the value that will be set in the cell.
If you would like to check whether the value is changed or still the sample after editing, I can suggest you use the following code :
if ((e.Editor as TextBox).Text == e.Cell.Value.ToString())
If you have any other questions on this matter, feel free to ask.