【发布时间】:2012-02-08 14:28:20
【问题描述】:
void gridControl1_DoubleClick(object sender, EventArgs e) {
GridControl grid = sender as GridControl;
DXMouseEventArgs args = e as DXMouseEventArgs;
BaseHitInfo hitInfo = grid.Views[0].CalcHitInfo(args.Location);
GridHitInfo gridHit = hitInfo as GridHitInfo;
if (GridHitTest.RowCell == gridHit.HitTest) {
int rowHandle = gridHit.RowHandle;
grid.MainView.GetRow(rowHandle);//GetRow returns Object. I need to cast this to a Type to make it useful
}
}
我有用于 GetRow() 的 documentation。我无法提取比通过智能感知提取更多有用的信息。
我怎么知道我可以将它投射到什么位置?
【问题讨论】:
标签: c# winforms devexpress xtragrid