System.Windows.Forms.DataGrid.GetCellBounds Method

Gets the System.Drawing.Rectangle of the cell specified by row and column number.

Syntax

public System.Drawing.Rectangle GetCellBounds (int row, int col)

Parameters

row
The number of the cell's row.
col
The number of the cell's column.

Returns

A System.Drawing.Rectangle that defines the current cell's corners.

Remarks

To retrieve the cell bounds for the currently selected cell, use DataGrid.GetCurrentCellBounds.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0