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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





5605 Jul 10,2003 03:38 AM UTC Jul 10,2003 07:22 PM UTC WinForms 3
Tags: GridControl
Asked On July 10, 2003 03:38 AM UTC

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

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

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 02:26 PM UTC

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

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

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon