The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
ADAdministrator Syncfusion Team 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())
PEPeterJuly 10, 2003 02:26 PM UTC
Is there a quick way to align the popupcontrolcontainer around the rectangle without adding a parentcontrol?
RPRamesh Praveen Syncfusion Team 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