【发布时间】:2015-06-18 09:57:03
【问题描述】:
我有一个 wpf 应用程序,我在其中使用带有 TableView 的 DevExpress GridControl。我的问题是我想获得点击的单元格。我在其他帖子中找到了该解决方案:
private void TableView_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
TableViewHitInfo hitInfo = tableView.CalcHitInfo(e.GetPosition(MainControl));
if (hitInfo.InRowCell)
{
object value = gridControl.MainView.GetRowCellValue(hitInfo.RowHandle, hitInfo.Column);
//...
}
}
但网格控件没有名为 MainView 的属性。我做错了什么?或者您对我的问题有其他解决方案吗?
【问题讨论】:
标签: c# wpf devexpress tableview gridcontrol