Table of Contents

Method SetColumnWidth

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetColumnWidth(ObjectUniqueId, float?)

Sets the width of the specified column.

public virtual bool SetColumnWidth(ObjectUniqueId columnId, float? width)

Parameters

columnId ObjectUniqueId

The unique identifier of the column whose width is to be set.

width float?

The new width to apply to the column. If not specified will be calculated using width of the title.

Returns

bool

true if the column width was successfully set; otherwise, false.

Remarks

This method attempts to find the column associated with the given columnId and set its width to the specified width. If the column cannot be found, the method returns false.