【发布时间】:2010-04-27 14:51:05
【问题描述】:
如何在 WPF 数据网格中获取所选项目?尝试了以下方法,但没有成功;
dataGrid1.CurrentCell.Item.ToString();
string[] strsplit = dataGrid1.SelectedValue.ToString().Split('+');
dataGrid1.SelectedCells[0].Item.ToString();
dataGrid1.CurrentItem.ToString();
dataGrid1.CurrentCell.Item.ToString();
dataGrid1.CurrentCell.Item.ToString();
【问题讨论】:
-
我得到的值是 eobfrontend.ManageFormats+theformats 不是我要找的字段值。