标签:os ar res sp view select as 方法
方法一:
DataRowView mySelectedElement = (DataRowView)dataGrid1.SelectedItem;
string result = mySelectedElement.Row[0]ToString();
方法二:
var a = this.dataGrid1.SelectedItem;
var b = a as DataRowView;
string result = b.Row[0].ToString();
【转】WPF DataGrid 获取选中的当前行某列值,布布扣,bubuko.com
标签:os ar res sp view select as 方法
原文地址:http://www.cnblogs.com/ZXdeveloper/p/3904268.html