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

current cell coordinates

How do I get the x,y coordinates for the current cell.

1 Reply

AD Administrator Syncfusion Team July 16, 2003 09:22 AM UTC

Here is some code: //C# GridCurrentCell cc = this.gridControl1.CurrentCell; Point pointInGridCoordinates = this.gridControl1.ViewLayout.RowColToPoint(cc.RowIndex, cc.ColIndex, true); Point pointInScreenCoordinates = this.gridControl1.PointToScreen(pointInGridCoordinates); Console.WriteLine("Screen: {0} Grid: {1}", pointInScreenCoordinates, pointInGridCoordinates); 'VB Dim cc As GridCurrentCell = Me.gridControl1.CurrentCell Dim pointInGridCoordinates As Point = Me.gridControl1.ViewLayout.RowColToPoint(cc.RowIndex, cc.ColIndex, True) Dim pointInScreenCoordinates As Point = Me.gridControl1.PointToScreen(pointInGridCoordinates) Console.WriteLine("Screen: {0} Grid: {1}", pointInScreenCoordinates, pointInGridCoordinates

Loader.
Live Chat Icon For mobile
Up arrow icon