开发者

Silverlight Datagrid RowEditEnded

开发者 https://www.devze.com 2022-12-11 13:42 出处:网络
I have a SL DataGrid that has two columns.I need to be able to catch any change to the a row and save it into an undo stack.I setup the event RowEditEnded and tried to add to the undo stack there.The

I have a SL DataGrid that has two columns. I need to be able to catch any change to the a row and save it into an undo stack. I setup the event RowEditEnded and tried to add to the undo stack there. The problem I'm running into is that I have no way to get the new value from RowEditEnded. If the column is a ComboBox then it u开发者_StackOverflow社区pdates the binding source before RowEditEnded is thrown, but if I have just a TextBox then RowEditEnded is thrown before the datasource is updated.

Does anyone know of a way to force the DataBinding source to be updated before RowEditEnded to allow me to access the new value when the column is a template column with a textbox?


You will need to catch the changes in your class that is bound to since that is where the changes are being stored. The DataGrid edit mode is a state of the data grid, not the values behind it.

0

精彩评论

暂无评论...
验证码 换一张
取 消