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.

Get current X and Y or rectangle position from Current Cell

Thread ID:

Created:

Updated:

Platform:

Replies:

51221 Oct 31,2006 01:31 PM Oct 31,2006 11:17 PM Windows Forms 1
loading
Tags: GridControl
Adam K.
Asked On October 31, 2006 01:31 PM

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

Administrator [Syncfusion]
Replied On October 31, 2006 11:17 PM

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

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.

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.

;