Get current X and Y or rectangle position from Current Cell

i want to popup a form from clicking on a cell and i want to ahve the form.Top property show up right at the bottom of the current cell and the left property of the form be the left property of the current cell.

How do i do this ? Thanks in advance.

thks,
ak

1 Reply

AD Administrator Syncfusion Team November 1, 2006 04:17 AM UTC

Hi Adam,

You can use the Renderer.GetCellBoundsCore method to get the cell bounds information from the grid. Below is a code

private void gridCellClick(object sender, GridCellClickEventArgs e)
{
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
Rectangle rect = cc.Renderer.GetCellBoundsCore(e.RowIndex,e.ColIndex,true);
Console.WriteLine(rect);
}

Best Regards,
Haneef

Loader.
Up arrow icon