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.
Unfortunately, activation email could not send to your email. Please try again.

Grid Grouping Control

Thread ID:

Created:

Updated:

Platform:

Replies:

90444 Oct 1,2009 09:03 AM Oct 1,2009 09:24 AM Windows Forms 1
loading
Tags: Grouping
Sachin Pandey
Asked On October 1, 2009 09:03 AM

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

Rajadurai C [Syncfusion]
Replied On October 1, 2009 09:24 AM

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

CONFIRMATION

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.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;