view cell contents in C# before celleditediting

Mar 31, 2010 at 9:56 PM

What property (in which event) enables me to view the contents of the datagrid cell being edited? My datagrid is bound to a data table and I know how to push the cell to the table before RowEditEnding but I how do I see the new data/cell contents before it is written to the data table?

Apr 6, 2010 at 4:04 PM
Edited Apr 6, 2010 at 4:05 PM

I use ((cell.Content as TextBox).Text. Don't sure that there is good way, but it works for me.