标签:idc point position use nta 选中 client event control
void gridView1_MouseDown(object sender, MouseEventArgs e) { GridHitInfo info; Point pt = winGridView1.gridView1.GridControl.PointToClient(Control.MousePosition); info = winGridView1.gridView1.CalcHitInfo(pt); if (info.InRow && winGridView1.gridView1.IsGroupRow(info.RowHandle) && info.HitTest != GridHitTest.RowGroupButton) { if (e.Clicks == 1 && e.Button == MouseButtons.Left) { if (winGridView1.gridView1.IsGroupRow(info.RowHandle)) { //选中行是否展开 bool expanded = winGridView1.gridView1.GetRowExpanded(info.RowHandle); //设置选中行是否展开或者收起来 winGridView1.gridView1.SetRowExpanded(info.RowHandle, !expanded); } } } }
标签:idc point position use nta 选中 client event control
原文地址:https://www.cnblogs.com/CoreXin/p/14024037.html