开发者

WPF datagrid - value of the edited cell

开发者 https://www.devze.com 2023-04-08 05:40 出处:网络
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百科th

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

精彩评论

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

关注公众号