Opening the first step to Trigger DataGrid Double Click Event in WinForm

xiaoxiao2021-03-06  34

Just put the following code into the mouse up event: System.Drawing.Point pt = new Point (eX, eY); DataGrid.HitTestInfo hti = this.dgResult.HitTest (pt); if (hti.Type == DataGrid.HitTestType .Cell) {this.dgresult.currentcell = new dataGridcell (hti.row, hti.column); this.dgresult.select (hti.row);}

转载请注明原文地址:https://www.9cbs.com/read-54914.html

New Post(0)