Edit this page

GridViewColumn

Columns are represented by GridViewColumn objects. GridViewColumn is the base class for all types of RadGridView columns, including GridViewDataColumn (the base class for all data bound columns). GridViewColumn has properties that tailor appearance and behavior for the entire column including:

  • HeaderText, HeaderTextAlignment: The text string for column heading and the alignment for the heading, respectively. HeaderTextAlignment aligns the text to a ContentAlignment enumeration member: TopLeft, TopCenter, TopRight, MiddleLeft, MidddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight.

  • Name is the unique name of the column that is used to identify the column in all grid operations;

  • FieldName property connects the column with the underlying data source in case of a bound column;

  • IsPinned: Pins the column to the left side of the grid.

  • IsCurrent: This property sets a certain column to be current

  • IsVisible: Hide a column by setting IsVisible to False.

  • MinWidth, MaxWidth, Width: Minimum, maximum and the current width of the column.

  • AllowResize: If True, the width of the column can be resized. If False the splitter mouse cursor does not display and the column is prevented from being resized.

  • TextAlignment: Aligns the text to a ContentAlignment enumeration member: TopLeft, TopCenter, TopRight, MiddleLeft, MidddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight.

See Also