Table of Contents

Class DataGrid

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

A DataGrid control that displays data in rows and columns and allows for the entering and editing of data.

[StyleTypedProperty(Property = "CheckBoxColumnElementStyle", StyleTargetType = typeof(CheckBox))]
[StyleTypedProperty(Property = "CheckBoxColumnEditingElementStyle", StyleTargetType = typeof(CheckBox))]
[StyleTypedProperty(Property = "ComboBoxColumnElementStyle", StyleTargetType = typeof(ComboBox))]
[StyleTypedProperty(Property = "ComboBoxColumnEditingElementStyle", StyleTargetType = typeof(ComboBox))]
[StyleTypedProperty(Property = "TextColumnElementStyle", StyleTargetType = typeof(TextBlock))]
[StyleTypedProperty(Property = "TextColumnEditingElementStyle", StyleTargetType = typeof(TextBox))]
public class DataGrid : DataGrid, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage
Inheritance
DataGrid
Implements
Inherited Members

Fields

CheckBoxColumnEditingElementStyleProperty

Identifies the CheckBoxColumnEditingElementStyle dependency property.

public static readonly DependencyProperty CheckBoxColumnEditingElementStyleProperty

Field Value

DependencyProperty

CheckBoxColumnElementStyleProperty

Identifies the CheckBoxColumnElementStyle dependency property.

public static readonly DependencyProperty CheckBoxColumnElementStyleProperty

Field Value

DependencyProperty

ComboBoxColumnEditingElementStyleProperty

Identifies the ComboBoxColumnEditingElementStyle dependency property.

public static readonly DependencyProperty ComboBoxColumnEditingElementStyleProperty

Field Value

DependencyProperty

ComboBoxColumnElementStyleProperty

Identifies the ComboBoxColumnElementStyle dependency property.

public static readonly DependencyProperty ComboBoxColumnElementStyleProperty

Field Value

DependencyProperty

TextColumnEditingElementStyleProperty

Identifies the TextColumnEditingElementStyle dependency property.

public static readonly DependencyProperty TextColumnEditingElementStyleProperty

Field Value

DependencyProperty

TextColumnElementStyleProperty

Identifies the TextColumnElementStyle dependency property.

public static readonly DependencyProperty TextColumnElementStyleProperty

Field Value

DependencyProperty

Properties

CheckBoxColumnEditingElementStyle

Gets or sets the style for all the column checkboxes in the DataGrid

public Style? CheckBoxColumnEditingElementStyle { get; set; }

Property Value

Style

CheckBoxColumnElementStyle

Gets or sets the style which is applied to all checkbox column in the DataGrid

public Style? CheckBoxColumnElementStyle { get; set; }

Property Value

Style

ComboBoxColumnEditingElementStyle

Gets or sets the style for all the column comboboxes in the DataGrid

public Style? ComboBoxColumnEditingElementStyle { get; set; }

Property Value

Style

ComboBoxColumnElementStyle

Gets or sets the style which is applied to all combobox column in the DataGrid

public Style? ComboBoxColumnElementStyle { get; set; }

Property Value

Style

TextColumnEditingElementStyle

Gets or sets the style for all the column textboxes in the DataGrid

public Style? TextColumnEditingElementStyle { get; set; }

Property Value

Style

TextColumnElementStyle

Gets or sets the style which is applied to all textbox column in the DataGrid

public Style? TextColumnElementStyle { get; set; }

Property Value

Style

Methods

OnInitialized(EventArgs)

Raises the Initialized event. This method is invoked whenever IsInitialized is set to true internally.

protected override void OnInitialized(EventArgs e)

Parameters

e EventArgs

The RoutedEventArgs that contains the event data.