New to Telerik UI for WinForms? Download free 30-day trial

GridViewDataColumn

GridViewDataColumn inherits from GridViewColumn and is the base class for all column types. GridViewDataColumn is an abstract class and you can not use it in its pure form. Below is a list of the column types that RadGridView offers. All of them inherit from the GridViewDataColumn and enhance its capabilities:

Column's type Data type
GridViewTextBoxColumn presents String values
GridViewDecimalColumn presents Decimal values
GridViewDateTimeColumn presents DateTime objects
GridViewTimeSpanColumn presents TimeSpan objects
GridViewHyperlinkColumn presents Hyperlinks
GridViewColorColumn presents Colors
GridViewCheckBoxColumn presents Boolean values
GridViewImageColumn presents Images
GridViewCalculatorColumn represents Calculator
GridViewCommandColumn represents Buttons
GridViewBrowseColumn represents File paths
GridViewSparklineColumn represents Sparklines
GridViewComboBoxColumn represents a column whose cells contains comboboxes
GridViewMaskBoxColumn represents a column whose cells contain masked text boxes with String values
GridViewRatingColumn represents a column that visualizes the cell's value by using a rating element
GridViewMultiComboBoxColumn represents a column that contain multi column combo boxes

By default, RadGridView will generate its columns automatically based on the underlying data source. For example, if the column contains string values, RadGridView will create a GridViewTextBoxColumn, etc. Then, depending on the column's type, RadGridView activates an appropriate editor to handle the cell's value changes. If you have a GridViewTextBoxColumn, the editor is RadTextBoxEditor. A list with all supported editors is available here.

GridViewDataColumn doesn't have associated editor. Each of the above mentioned column types has a default editor.

The following table shows the properties that GridViewDataColumn offers:

Property Description
AutoFilterDelay Gets or set the value in Milliseconds indicating delay between last key press and filtering operation.
AllowFiltering Gets or sets a value indicating whether the user can filter by this column.
AllowGroup Gets or sets a value indicating whether the user can group data based on the content of this column.
AllowHide Gets or sets value indicating whether the user can hide the column.
AllowReorder Gets or sets a value indicating whether the user can reorder this column using the mouse.
AllowResize Gets or sets value indicating whether the user can resize the column.
AllowSort Gets or sets value indicating whether the user can sort data based on the contents of this column.
AllowSearching Gets or sets a value indicating whether the user can search by this column.
AllowNaturalSort Gets or sets a value indicating whether clicking on the header cell of this column would allow the user to set natural (no) sort.
AutoEllipsis Gets or sets a value which determines whether an ellipsis is shown when the whole text of the cells can not be displayed.
DataTypeConverter Gets or sets the data type converter used to convert data between the data source and grid editors.
UseDataTypeConverterWhenSorting Gets or sets a value indicating whether the data type converter of this column should be used when sorting.
FilterDescriptor Gets or sets the filter descriptor.
DataType Gets or sets the data type of the column.
ExcelExportType Gets or sets the type of the excel export.
ExcelExportFormatString Gets or sets the excel export format string. Note that this format is considered only if ExcelExportType property is set to DisplayFormatType.Custom
FormatInfo Gets or sets the culture info used when formatting cell values.
FormatString Gets or sets the format string applied to the textual content of each cell in the column.
NullValue Gets or sets the cell display value corresponding to a cell value of System.DBNull or null.
ReadOnly Gets or sets a value indicating whether the user can edit the data in the column's cells.
DataSourceNullValue Gets or sets a value to the data source when the user enters a null value into a cell.
DistinctValues Gets the distinct values.
DistinctValuesWithFilter Gets the distinct values with filter.
HeaderText Gets or sets the caption text on the column's header cell.
HeaderTextAlignment Gets or sets a value indicating the position of the HeaderText within the header cell.
TextAlignment Gets or sets a value indicating the position of the cell content within a column's cells.
DisableHTMLRendering Disable or enable HTML-like text rendering in the column.
WrapText Gets or sets value indicating whether the text in each cell in the column should be wrapped.

See Also

In this article