开发者

WPF datagrid - value of the edited cell

I am working on WPF datagrid control. Binding the data from code behind using a dataset/XML. I want to edit the cell of the grid and capture the new value which the user has entered. Is 开发者_C百科there a code sample to show how to do that?

What event should I use and which property of datagrid (if any) should I use, selecteditem or selectedcell?

(I am kind of new to WPF datagrid control, so I apologize if this is kind of kiddish...)


You can use CellEditEnding and RowEditEnding. You can access the respective row and its Item from the event arguments.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜