New to Telerik UI for WinFormsStart a free 30-day trial

GridViewDataColumn

Updated over 6 months ago

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 typeData type
GridViewTextBoxColumnpresents String values
GridViewDecimalColumnpresents Decimal values
GridViewDateTimeColumnpresents DateTime objects
GridViewTimeSpanColumnpresents TimeSpan objects
GridViewHyperlinkColumnpresents Hyperlinks
GridViewColorColumnpresents Colors
GridViewCheckBoxColumnpresents Boolean values
GridViewImageColumnpresents Images
GridViewCalculatorColumnrepresents Calculator
GridViewCommandColumnrepresents Buttons
GridViewBrowseColumnrepresents File paths
GridViewSparklineColumnrepresents Sparklines
GridViewComboBoxColumnrepresents a column whose cells contains comboboxes
GridViewMaskBoxColumnrepresents a column whose cells contain masked text boxes with String values
GridViewRatingColumnrepresents a column that visualizes the cell's value by using a rating element
GridViewMultiComboBoxColumnrepresents 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:

PropertyDescription
AutoFilterDelayGets or set the value in Milliseconds indicating delay between last key press and filtering operation.
AllowFilteringGets or sets a value indicating whether the user can filter by this column.
AllowGroupGets or sets a value indicating whether the user can group data based on the content of this column.
AllowHideGets or sets value indicating whether the user can hide the column.
AllowReorderGets or sets a value indicating whether the user can reorder this column using the mouse.
AllowResizeGets or sets value indicating whether the user can resize the column.
AllowSortGets or sets value indicating whether the user can sort data based on the contents of this column.
AllowSearchingGets or sets a value indicating whether the user can search by this column.
AllowNaturalSortGets or sets a value indicating whether clicking on the header cell of this column would allow the user to set natural (no) sort.
AutoEllipsisGets or sets a value which determines whether an ellipsis is shown when the whole text of the cells can not be displayed.
DataTypeConverterGets or sets the data type converter used to convert data between the data source and grid editors.
UseDataTypeConverterWhenSortingGets or sets a value indicating whether the data type converter of this column should be used when sorting.
FilterDescriptorGets or sets the filter descriptor.
DataTypeGets or sets the data type of the column.
ExcelExportTypeGets or sets the type of the excel export.
ExcelExportFormatStringGets or sets the excel export format string. Note that this format is considered only if ExcelExportType property is set to DisplayFormatType.Custom
FormatInfoGets or sets the culture info used when formatting cell values.
FormatStringGets or sets the format string applied to the textual content of each cell in the column.
NullValueGets or sets the cell display value corresponding to a cell value of System.DBNull or null.
ReadOnlyGets or sets a value indicating whether the user can edit the data in the column's cells.
DataSourceNullValueGets or sets a value to the data source when the user enters a null value into a cell.
DistinctValuesGets the distinct values.
DistinctValuesWithFilterGets the distinct values with filter.
HeaderTextGets or sets the caption text on the column's header cell.
HeaderTextAlignmentGets or sets a value indicating the position of the HeaderText within the header cell.
TextAlignmentGets or sets a value indicating the position of the cell content within a column's cells.
DisableHTMLRenderingDisable or enable HTML-like text rendering in the column.
WrapTextGets or sets value indicating whether the text in each cell in the column should be wrapped.

See Also

In this article
See Also
Not finding the help you need?
Contact Support