A column type for the RadGrid control that is bound to a field in a data
source which is of type DateTime. Displays RadDatePicker, RadDateTimePicker or RadDateInput for editor and filter control.

Remarks

The default data binding (when AutoGenerateColumnsproperty
is set to true) generates GridDateTimeColumntype of column for source field which is of type DateTime. It
displays each item from the DataSource field as text in regular mode. This column ishttp://www.telerik.com/help/aspnet-ajax/grdeditforms.html editable(implements thehttp://www.telerik.com/help/aspnet-ajax/telerik.web.ui-telerik.web.ui.grideditablecolumn.html IGridEditableColumninterface) and provides by default GridDateTimeColumnEditor, used for
editing the date in each item.GridDateTimeColumnhas three similar and yet different
properties controlling its visibility and rendering in a browser in regular and in
edit mode:bullet Display- concerns only the appearance of the column in
browser mode, client-side. The column will be rendered in the browser but all
the cells will be styled with display: none. The column editor will be
visible in edit mode.Visible- will stop the column cells from rendering in
browser mode. The column will be visible in edit mode.ReadOnly- the column will be displayed according to the
settings of previous properties in browser mode but will not appear in the
edit-form.table None of these properties can prevent you from
accessing the column cells' content server-side using the
UniqueNameof the column.

Gets the string representation of the type-name of this instance. The value is
used by RadGrid to determine the type of the columns persisted into the ViewState, when
recreating the grid after postback. The value is also used by the grid client-side
object. This property is read only.

Gets or sets the string that specifies the display format for items in the
column.

Remarks

Use the DataFormatString property to provide a custom format for the items
in the column.The data format string consists of two parts, separated by a colon, in the form {
A : Bxx }.
For example, the formatting string {0:C2} displays a currency formatted number with two
decimal places.Note: The entire string must be enclosed in braces to indicate
that it is a format string and not a literal string. Any text outside the braces is
displayed as literal text.The value before the colon (A in the general
example) specifies the parameter index in a zero-based list of parameters.Note: This value can only be set to 0 because there is only one
value in each cell.The value before the colon (A in the general
example) specifies the parameter index in a zero-based list of parameters.The character after the colon (B in the general
example) specifies the format to display the value in. The following table lists the
common formats.Format characterDescriptionCDisplays numeric values in currency format.DDisplays numeric values in decimal format.EDisplays numeric values in scientific (exponential)
format.FDisplays numeric values in fixed format.GDisplays numeric values in general format.NDisplays numeric values in number format.XDisplays numeric values in hexadecimal
format.Note: The format character is not case-sensitive, except for
X, which displays the hexadecimal characters in the case specified.The value after the format character
(xx in the general example) specifies the number of
significant digits or decimal places to display.For more information on formatting strings, see
Formatting
Overview (external link to MSDN library).

Gets or sets a value indicating whether the cells corresponding to a column would be rendered with a 'display:none' style attribute (end-user-not-visible).
To completely prevent cells from rendering, set the property to false, instead of the Display property.

Specifies the vertical collumn number where this column will appear when
using EditForms editing mode and the form is autogenerated. See the remarks for
details.

Remarks

A practicle example of using this property is to deterimine the number of
columns rendered in the edit form. If there will be only one column in the rendered
edit form, when we retrieve the value of this property for a column, as shown in
the code below:protected void RadGrid1_PreRender(object sender, EventArgs e) {int columnIndex = RadGrid1.MasterTableView.Columns[3].EditFormColumnIndex; }it will be equal to 0, meaning the the column belongs to the first group of
columns in the edit form.

Determines if the header context menu will be displayed for the current column.
This property works together with the EnableHeaderContextMenu property of the corresponding GridTableView.
Default value is true.

Remarks

The group-expression that should be used when grid is grouping-by this column. If
not set explicitly, RadGrid will generate a group expression based on the DataField of
the column (if available), using the
method.The grouping can be turned on/off for columns like GridBoundColumn using
property.For more information about the Group-By expressions and their syntax, see
class.

Gets or sets the button type of the button rendered in the header item, used
for sorting. The possible values that this property accepts are:Telerik.Web.UI.GridHeaderButtonType.LinkButton
Telerik.Web.UI.GridHeaderButtonType.PushButton
Telerik.Web.UI.GridHeaderButtonType.TextButton

Gets or sets a value determining whether a editor
will be displayed in the insert item.
Inherited: The visibility is dependent on the value of the ReadOnly property.
AlwaysVisible: The insert item is always visible
AlwaysHidden: The insert item is always hidden

This property is supposed for developers of new grid columns. It gets whether
a column is currently ReadOnly. The ReadOnly property determines whether a column
will be editable in edit mode. A column for which the ReadOnly property is true
will not be present in the automatically generated edit form.

Gets or sets the order index of column in the collection of
. Use
method for reordering the columns.

Remarks

We recommend using this property only for getting the order index for a
specific column instead of setting it. Use
method for reordering columns.
Note that changing the column order index will change the order of the cells
in the grid items, after the grid is rebound.
The value of the property would not affect the order of the column in the
collection.

Gets or sets a value indicating whether the column can be resized client-side.
You can use this property, by setting it to false, to disable resizing for a particular
column, while preserving this functionality for all the other columns.

Each column in Telerik RadGrid has an UniqueName
property (string). This property is assigned automatically by the designer (or the
first time you want to access the columns if they are built dynamically).

Remarks

You can also set it explicitly, if you prefer. However, the automatic
generation handles most of the cases. For example a
GridBoundColumn with DataField 'ContactName'
would generate an UniqueName of 'ContactName'.Additionally, there may be occasions when you will want to set the UniqueName
explicitly. You can do so simply by specifying the custom name that you want to
choose:/radG:GridTemplateColumn

Parameters

cell System.Web.UI.WebControls.TableCell

Returns

This method should be used in case you develop your own column. It returns the
full list of DataFields used by the column.
GridTableView uses this to decide which DataFields
from the specified DataSource will be inlcuded in case of
GridTableView.RetrieveAllDataFields is set to
false.

Parameters

dataItemInstance System.Object

Returns

This method should be used in case you develop your own column. It returns the
full list of DataFields used by the column.
GridTableView uses this to decide which DataFields
from the specified DataSource will be inlcuded in case of
GridTableView.RetrieveAllDataFields is set to
false.

Returns

Returns

The Initialize method is inherited by a derived
GridColumn class. Is is used to reset a column of the derived
type.

Remarks

This method is mainly used to reset properties common for all column types
derived from GridColumn class.The Initialize method is usually called during data-binding, prior to the
first row being bound.

Returns

Returns

After a call to this method the column should add the corresponding controls
(text, labels, input controls) into the cell given, regarding the inItem type and
column index.Note: This method is called within RadGrid and is not intended
to be used directly from your code.

Returns

Give article feedback

Tell us how we can improve this article

Code samples are inaccurate/outdated.
I expected to find other/more information.
There are typos/broken links/broken page elements.
Content is inaccurate/outdated.
Other
By checking this box you consent to Progress contacting you by email about your response on this page.