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.

X Y position of Current Cell

Thread ID:

Created:

Updated:

Platform:

Replies:

45121 Jun 12,2006 12:44 PM Jun 12,2006 11:53 PM Windows Forms 2
loading
Tags: GridControl
Chris Wescott
Asked On June 12, 2006 12:44 PM

Hi Guys, I have a need to get the current XY position of a selected cell. I then need to draw a line outside of the grid to the selected cell. I have the drawing part done but I am using the XY Position of the mouse when the cell has been selected. I was wondering if there was a way to get the XY position of the cell. Regards, Chris Wescott

Chris Wescott
Replied On June 12, 2006 12:44 PM

I forgot, I am using a GGC with a P-C Relationship. >Hi Guys, > I have a need to get the current XY position of a selected cell. I then need to draw a line outside of the grid to the selected cell. I have the drawing part done but I am using the XY Position of the mouse when the cell has been selected. I was wondering if there was a way to get the XY position of the cell. > >Regards, > >Chris Wescott

Administrator [Syncfusion]
Replied On June 12, 2006 11:53 PM

Hi Chris, Try this code to get the selected cell bounds in a grouping grid. Here is a code snippet. GridCellRendererBase cr = this.gridGroupingControl1.TableControl.GetCellRenderer(selectedRowIndex,selectedColIndex); if(cr != null) { Rectangle cellrect = cr.GetCellBoundsCore(selectedRowIndex,selectedColIndex); Console.WriteLine( "X : " + cellrect.X + "Y :" +cellrect.Y); } Let me know if this helps. Best Regards, Haneef

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.

;