DataGridTextCellFitColumnWidthToContent Method
Fits the width of column to the contect of the cell.
Namespace: BeeMobile.DataGridAssembly: BeeMobile.DataGrid.NET48 (in BeeMobile.DataGrid.NET48.dll) Version: 4.8.1.19
public override void FitColumnWidthToContent(
Graphics gr,
DataGridColumn column,
int rowHeight
)
Public Overrides Sub FitColumnWidthToContent (
gr As Graphics,
column As DataGridColumn,
rowHeight As Integer
)
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.
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.