In This Article

DataGridDateTimeColumn Class

Represents a data-bound column for use in a DataGrid that utilizes the DateTimeEditBox control.

public class DataGridDateTimeColumn : DataGridPartEditBoxColumnBase<DateTime?>
Inheritance:
object DataGridColumn DataGridBoundColumn DataGridBoundColumnBase DataGridPartEditBoxColumnBase<DateTime?> object
Derived:
DataGridDateColumn DataGridTimeColumn

Constructors

DataGridDateTimeColumn()

Initializes an instance of the DataGridDateTimeColumn class.

public DataGridDateTimeColumn()

Properties

Format

Gets or sets the date/time format string.

public string Format { get; set; }

Property Value

string:

The date/time format string. The default value is "g".

Maximum

Gets or sets the highest possible value.

public DateTime Maximum { get; set; }

Property Value

DateTime:

The highest possible value.

Minimum

Gets or sets the lowest possible value.

public DateTime Minimum { get; set; }

Property Value

DateTime:

The lowest possible value.

Methods

ApplyStandardValues(FrameworkElement)

Applies standard values to the specified target element.

protected override void ApplyStandardValues(FrameworkElement targetElement)
Parameter Type Description
targetElement FrameworkElement

The target element.

GetEditBoxType()

Gets the type of the associated PartEditBoxBase-derived control.

protected override Type GetEditBoxType()

Returns

Type:

The type of the associated PartEditBoxBase-derived control.

Fields

FormatProperty

Identifies the Format dependency property. This field is read-only.

public static readonly DependencyProperty FormatProperty

MaximumProperty

Identifies the Maximum dependency property. This field is read-only.

public static readonly DependencyProperty MaximumProperty

MinimumProperty

Identifies the Minimum dependency property. This field is read-only.

public static readonly DependencyProperty MinimumProperty

Inherited Members