DataGridTextCellFitColumnWidthToContent Method

Fits the width of column to the contect of the cell.

Definition

Namespace: BeeMobile.DataGrid
Assembly: BeeMobile.DataGrid.NET48 (in BeeMobile.DataGrid.NET48.dll) Version: 4.8.1.19
C#
public override void FitColumnWidthToContent(
	Graphics gr,
	DataGridColumn column,
	int rowHeight
)

Parameters

gr  Graphics
The graphics object, by which the measures will be made.
column  DataGridColumn
The column, which width should be adapted.
rowHeight  Int32
The height of the row, in which the cell is.

Remarks

Margins are taken in count. If the width of the column is largen, then the width of the content, the width is leaved intact - does not shrink.

See Also