Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
20141 | Oct 11,2004 02:58 PM UTC | Oct 12,2004 07:58 AM UTC | WinForms | 6 |
![]() |
Tags: GridControl |
private void gridGroupingControl1_TableControlCurrentCellControlDoubleClick(object sender, GridTableControlControlEventArgs e) { int row, col; Point pt = e.TableControl.PointToClient(Control.MousePosition);; if (e.TableControl.PointToRowCol(pt, out row, out col)) e.TableControl.CurrentCell.AdjustRowColIfCoveredCell(ref row, ref col); tableCellStyle = e.TableControl.GetTableViewStyleInfo(row, col); contextElement = tableCellStyle.TableCellIdentity.DisplayElement; Console.WriteLine(row.ToString() + " " + col.ToString()); }
private void gridGroupingControl1_TableControlCurrentCellControlDoubleClick(object sender, GridTableControlControlEventArgs e) { int row, col; Point pt = e.TableControl.PointToClient(Control.MousePosition);; if (e.TableControl.PointToRowCol(pt, out row, out col)) e.TableControl.CurrentCell.AdjustRowColIfCoveredCell(ref row, ref col); tableCellStyle = e.TableControl.GetTableViewStyleInfo(row, col); Console.WriteLine(tableCellStyle.Text +" " + tableCellStyle.TableCellIdentity.Column.Name); }
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.