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

RectangleTo...

Thread ID:

Created:

Updated:

Platform:

Replies:

31147 Jun 30,2005 02:59 PM UTC Jul 4,2005 01:20 PM UTC Windows Forms 4
loading
Tags: GridControl
Martin Cyr
Asked On June 30, 2005 02:59 PM UTC

How could I get the location of the currently selected cell? I need to display a form next to the currently selected cell. I tried frmMyNewForm.Location = myGrid.RectangleToScreen(myGrid.RangeInfoToRectangle(myGrid.CurrentCell.RangeInfo)).Location but thats not it...

Administrator [Syncfusion]
Replied On June 30, 2005 03:17 PM UTC

Does the form and the grid have the same parent? The Location property is in the parent''s coordinate system, so you may have to call grid.RectangleToScreen and then form.Parent.RectangleToClient to get things to match.

Martin Cyr
Replied On July 4, 2005 01:13 PM UTC

MDI Form | --- Grid on the --- Grid on the form | --- Grid in the grid | --- Cell in the grid How can I get the cell in the grid

Martin Cyr
Replied On July 4, 2005 01:16 PM UTC

Here''s my hierarchy. MDI Form | --- MDI Child form | --- Grid on the form | --- Grid in the grid | --- Cell in the grid | --- New form How do I get the location of the "Cell in the grid" so that I can position the "New form" at the right coordinates?

Administrator [Syncfusion]
Replied On July 4, 2005 01:20 PM UTC

You need to make sure the new form has form.StartPosition = manual. Then you set its Location property in screen coordinates.

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

;