Gets a Rectangle that specifies the four corners of the selected cell.
[Visual Basic] Public Function GetCurrentCellBounds() As Rectangle [C#] public Rectangle GetCurrentCellBounds(); [C++] public: Rectangle GetCurrentCellBounds(); [JScript] public function GetCurrentCellBounds() : Rectangle;
A Rectangle that defines the current cell's corners.
The following example gets the Rectangle of the selected cell.
[Visual Basic]
Private Sub DataGrid1_CurrentCellChange(ByVal sender As Object, ByVal e As EventArgs) Dim rect As Rectangle rect = DataGrid1.GetCurrentCellBounds() Console.WriteLine(rect.ToString) End Sub
DataGrid Class | DataGrid Members | System.WinForms Namespace | GetCellBounds