Hello,
You have demonstrated the usage of the PointToTableCellStyle method in the following threads:
http://www.syncfusion.com/Support/forums/message.aspx?MessageID=56020http://www.syncfusion.com/support/forums/message.aspx?MessageID=56017We used this method, but we faced a problem: The method can return incorrect data in some cases. To reproduce it, insert the following code:
private void gridGroupingControl1_TableControlMouseDown(object sender, GridTableControlMouseEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.PointToTableCellStyle(new Point(e.Inner.X,e.Inner.Y));
if( style != null )
{
Element el = style.TableCellIdentity.DisplayElement;
if (style.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell)
{
MessageBox.Show("Column = " + style.TableCellIdentity.Column.HeaderText);
}
}
}
in the EmployeeTerritoryOrder sample application located in the '
\Essential Studio\x.x.x.x\Windows\Grid.Grouping.Windows\Samples\FeatureSamples\EmployeeTerritoryOrder\' folder. Run the application and try to click cells 'Seattle' and '98122' near the right border of the cells. You will see that the column referred to by the information returned by the PointToTableCellStyle method is wrong. Please see the attached image.
Best Regards,
David
PointToTableCellStyle.zip