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 class.

public DataGridDateTimeColumn()

Properties

Format

The date/time format string.

public string Format { get; set; }

Property Value

string:

The default value is "g".

Maximum

The highest possible value.

public DateTime Maximum { get; set; }

Property Value

DateTime

Minimum

The lowest possible value.

public DateTime Minimum { get; set; }

Property Value

DateTime

SpinWrapping

The wrapping behavior used when spinning past a minimum or maximum value in the active part.

public SpinWrapping SpinWrapping { get; set; }

Property Value

SpinWrapping:

The default value is Wrap.

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()

The type of the associated PartEditBoxBase-derived control.

protected override Type GetEditBoxType()

Returns

Type

Fields

FormatProperty

Defines the Format property.

public static readonly DependencyProperty FormatProperty

MaximumProperty

Defines the Maximum property.

public static readonly DependencyProperty MaximumProperty

MinimumProperty

Defines the Minimum property.

public static readonly DependencyProperty MinimumProperty

Inherited Members

Extension Methods