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.
Up arrow icon