MobileForms Toolkit Documentation

SmartGrid.AutoResizeColumn Method 

Adjusts the width of the specified column using the specified size mode.

public void AutoResizeColumn(
int columnIndex,
AutoSizeColumnMode autoSizeColumnMode
);

Parameters

columnIndex
The index of the column to resize.
autoSizeColumnMode
One of the AutoSizeColumnMode values.

Remarks

This method is useful if you want to control when a column resizes. The column width is adjusted only once per method call; if the contents of the column later change, the column will not automatically adjust. To resize all columns, use the AutoResizeColumns method. To set the column to automatically resize whenever its contents change, use the AutoSizeColumnsMode property or the column AutoSizeMode property.

See Also

SmartGrid Class | Resco.Controls.SmartGrid Namespace