Returns the rectangle where a cell's contents gets painted. The rectangle returned is relative to the top left of the first cell.
[Visual Basic] Overridable Public Function GetCellBounds( _ ByVal col As Integer _ ) As Rectangle [C#] public virtual Rectangle GetCellBounds( int col ); [C++] public: virtual Rectangle GetCellBounds( int col ); [JScript] public function GetCellBounds( col : int ) : Rectangle;
If row headers are visible, the grid begins painting rows at an offset equal to the row header width.
DataGridRow Class | DataGridRow Members | System.WinForms Namespace