We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Grid Grouping Control

GridBound Control has a PointToRowCol method which gives the cordinates of row and column where the mouse got clicked. How can we retrieve the same in Grouping Gird control

1 Reply

RC Rajadurai C Syncfusion Team October 1, 2009 01:24 PM UTC

Hi Sachin,

Thanks for your interest in Syncfusion Products.

In gridgroupingcontrol, the PointToRowCol method can be accessed through GridTableControl class. Here is some code for your reference handled in TableControlCellMouseDown event.

void gridGroupingControl1_TableControlCellMouseDown(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellMouseEventArgs e)
{
int row,col;
this.gridGroupingControl1.TableControl.PointToRowCol(new Point (e.Inner.MouseEventArgs.X,e.Inner.MouseEventArgs.Y),out row,out col);
Console.WriteLine ("Row: "+row+" Col: "+col);
}


Regards,
Rajadurai

Loader.
Live Chat Icon For mobile
Up arrow icon