this.MouseUp += new System.Windows.Forms.MouseEventHandler(ccGridMouseUp); private void ccGridMouseUp(object sender, System.Windows.Forms.MouseEventArgs e) { System.Drawing.Point pt = new Point(e.X,e.Y); DataGrid.HitTestInfo hti = this.HitTest(pt); if(hti.Type == DataGrid.HitTestType.Cell) { this.CurrentCell = new DataGridCell(hti.Row, hti.Column); this.Select(hti.Row); } }