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.
Syncfusion Feedback

screen (x, y) position of cell

Thread ID:

Created:

Updated:

Platform:

Replies:

23439 Jan 12,2005 04:44 PM UTC Jan 12,2005 10:44 PM UTC WinForms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 12, 2005 04:44 PM UTC

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 08:53 PM UTC

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 10:44 PM UTC

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.

Warning Icon 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.Close Icon

;