Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
25825 | Mar 8,2005 02:10 PM UTC | Mar 9,2005 08:42 PM UTC | WinForms | 2 |
![]() |
Tags: Grouping |
private void TableControl_MouseMove(object sender, MouseEventArgs e)
{
Point ptClient = new Point(e.X, e.Y);
GridTableControl tableControl = this.groupingGrid1.TableControl;
GridTableCellStyleInfo style = tableControl.PointToTableCellStyle(ptClient);
Element displayElement = style.TableCellIdentity.DisplayElement;
}
Stefan
>Hi,
>
>I uploaded a modified HierarchySample. See
>HierarchySampleWithHitTest.zip
>
>It contains sample code that listens for MouseMove events and then calls a helper method to determine the display element and the column under the cursor and dumps the info to the output window.
>
>PointToRowCol itsself does not work for nested tables because the nested tables are actually just a big covered range within the parent table control.
>
>Stefan
> 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.