Class GridColumn

GridColumn class

Represents a single column in a worksheet.

public class GridColumn

Properties

NameDescription
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

NameDescription
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

NameDescription
_filterValue
static DEFAULT_WIDTHDefault width of gridcolumn.

See Also