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.

Howto:? use a cell as the parent control for the popupcontrolcontainer

Thread ID:





5605 Jul 9,2003 11:38 PM Jul 10,2003 03:22 PM Windows Forms 3
Tags: GridControl
Asked On July 9, 2003 11:38 PM

How can i align a popupcontrolcontainer around a cell? TIA, Peter

Administrator [Syncfusion]
Replied On July 10, 2003 05:32 AM

Here is code that gives you the rectangle around the current cell in both grid coordinates and screen coordinates. Is this what you need? Dim cc As GridCurrentCell = Me.GridControl1.CurrentCell Dim rect As Rectangle = Me.GridControl1.RangeInfoToRectangle(GridRangeInfo.Cell(cc.RowIndex, cc.ColIndex)) Console.WriteLine(rect.ToString()) rect = Me.GridControl1.RectangleToScreen(rect) Console.WriteLine(rect.ToString())

Replied On July 10, 2003 10:26 AM

Is there a quick way to align the popupcontrolcontainer around the rectangle without adding a parentcontrol?

Ramesh Praveen [Syncfusion]
Replied On July 10, 2003 03:22 PM

Peter, No there is no easy way to do it. Someone has to implement the IPopupParent interface (and become the PopupControlContainer's PopupParent) and implement the GetLocationForPopupAlignment method. A good sample is at: Tools\Samples\Editors Package\PopupControlContainer\Advanced\PopupsInDepth Regards, Praveen Ramesh


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.