Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
26138 | Mar 15,2005 03:29 PM UTC | Mar 15,2005 07:03 PM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
private int mouseDownCol = -1; private void gridControl1_MouseDown(object sender, MouseEventArgs e) { int row; int col; Point pt = new Point(e.X, e.Y); if(this.gridControl1.PointToRowCol(pt, out row, out col)) this.mouseDownCol = col; } private void gridControl1_MouseUp(object sender, MouseEventArgs e) { int row; int col; Point pt = new Point(e.X, e.Y); if(this.gridControl1.PointToRowCol(pt, out row, out col) && col == this.mouseDownCol) { Console.WriteLine("MouseUp/Down Column"); } this.mouseDownCol = -1; }
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.