GridColumn

GridColumn class

Represents a single column in a worksheet.

public class GridColumn

Properties

Name Description
CellControl { get; } Gets the CellControl object of the column.
FilterIndex { get; set; }
Header { get; set; }
Hidden { get; set; } Indicates whether the column is hidden.
Index { get; } Gets the index of this column.
OutlineLevel { get; set; }
Width { get; set; } Gets or sets the width of column object.in unit of pixel

Methods

Name Description
AddButton(int, int, string) Adds a button to the column.
AddCheckBox() Adds a checkbox to the column.
AddComboBox(ICollection) Adds a combobox to the column.
AddComboBox(ICollection, ICollection) Adds a combobox to the column.
AddValidation(ICustomValidation)
AddValidation(bool, string) Adds a validation to the column.
GetStyle()
RemoveCellControl() Removes the CellControl object of the column.
SetStyle(Style)

Fields

Name Description
_filterValue
static DEFAULT_WIDTH Default width of gridcolumn.

See Also