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.

screen (x, y) position of cell

Thread ID:

Created:

Updated:

Platform:

Replies:

23439 Jan 12,2005 11:44 AM Jan 12,2005 05:44 PM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 12, 2005 11:44 AM

When certain cells activate, I would like to display a PopupControlContainer precisely below the active cell. How do I get the x, y screen position of the bottom border of the active cell? I’m also using the docking manager and several layout managers on my form if it matters. Thank you, Steve

Administrator [Syncfusion]
Replied On January 12, 2005 03:53 PM

Here is code that will give you the current cell rectangle both in grid coordinates and screen coordinates. Rectangle gridRect = this.gridDataBoundGrid1.RangeInfoToRectangle(this.gridDataBoundGrid1.CurrentCell.RangeInfo); Rectange screenRect = this.gridDataBoundGrid1.RectangleToScreen(gridRect);

Administrator [Syncfusion]
Replied On January 12, 2005 05:44 PM

Works like a champ! Thank you.

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.

;