Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
8575 | Nov 12,2003 03:56 PM UTC | Nov 12,2003 05:53 PM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
private void gridControl1_MouseDown(object sender, MouseEventArgs e) { int row, col; if(this.gridControl1.PointToRowCol(new Point(e.X, e.Y), out row, out col, -1)) { Console.WriteLine(row.ToString() + " " + col.ToString()) } }But if you want to prevent the currentcell from moving with a click, you might try setting e.Cancel = true in CurrentCellMoving.
private void gridControl1_CurrentCellMoving(object sender, GridCurrentCellMovingEventArgs e) { if(e.ColIndex == 3) e.Cancel = true; }
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.