This is a migrated thread and some comments may be shown as answers.

Inconsistent behavior in GridViewCellEditEndedEventArgs.Cell.Value

1 Answer 32 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 26 Oct 2016, 08:30 PM

When I handle e.Cell.Value in my Grid.CellEditEnded event handler, it will sometime have the updated value, and other times it will not.

Is there a method I can call on the Cell to request it to write to source?

It seems if I end editing by clicking on a cell in the same row, it will fail, but if I end editing by click on another row it will usually work.

Thanks for the assistance.

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 28 Oct 2016, 08:18 AM
Hello John,

Rather than using the cell's Value, would it work for you to use the NewData property of the GridViewCellEditEndedEventArgs of the CellEditEnded event which will always contain the newly-provided value?

Regards,
Dilyan Traykov
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or