开发者

how to enter the string value in a particular cell of DataGrid in WPF

开发者 https://www.devze.com 2023-03-26 17:38 出处:网络
Hello Guys , 开发者_StackOverflow中文版how to enter the string value in a particular cell of DataGrid in WPF .

Hello Guys , 开发者_StackOverflow中文版 how to enter the string value in a particular cell of DataGrid in WPF . Thanks in advance.


we can do it this way

void OurGrdEditEnding(object sender, DataGridRowEditEndingEventArgs e)
 {

       DataRowView dRowView = e.Row.Item as DataRowView;
       string sName = dRowView.Row["columnName"].ToString();
 }
0

精彩评论

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