System.Windows.Forms.DataGridViewColumn.FillWeight Property

Gets or sets a value that represents the width of the column when it is in fill mode relative to the widths of other fill-mode columns in the control.

Syntax

[System.ComponentModel.DefaultValue(100)]
public float FillWeight { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the DataGridViewColumn.InheritedAutoSizeMode property value is DataGridViewAutoSizeColumnMode.Fill, the column is resized along with other columns in that mode so that all visible columns in the control exactly fill the horizontal width of the available display area. All fill-mode columns in the control divide the available space in proportions determined by their DataGridViewColumn.FillWeight property values. For more information about column fill mode, see Column Fill Mode in the Windows Forms DataGridView Control.

The maximum sum of DataGridViewColumn.FillWeight values for all columns in a System.Windows.Forms.DataGridView control is 65535.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0