Just fyi. For the next release we also added some helper routines that will make this easier. You can then simply call
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
>