MindFusion.Wpf Pack Programmer's Guide
DataGrid Members
Constructors Fields Properties Methods Events
 


Displays data in a customizable grid.

The following tables list the members exposed by the DataGrid type.

 Public Constructors

  Name Description

DataGrid

Initializes a new instance of the DataGrid class.

 Public Fields

  Name Description

AllowColumnReorderProperty

Identifies the AllowColumnReorder dependency property.

AlternatingRowBackgroundProperty

Identifies the AlternatingRowBackground dependency property.

AlternatingRowBorderBrushProperty

Identifies the AlternatingRowBorderBrush dependency property.

AlternatingRowBorderThicknessProperty

Identifies the AlternatingRowBorderThickness dependency property.

AutoGenerateColumnsProperty

Identifies the AutoGenerateColumns dependency property.

CellBorderBrushProperty

Identifies the CellBorderBrush dependency property.

CellBorderThicknessProperty

Identifies the CellBorderThickness dependency property.

CurrentCellProperty

Identifies the CurrentCell dependency property.

HeaderBackgroundProperty

Identifies the HeaderBackground dependency property.

HeaderBorderBrushProperty

Identifies the HeaderBorderBrush dependency property.

HeaderBorderThicknessProperty

Identifies the HeaderBorderThickness dependency property.

HeaderContentTemplateProperty

Identifies the HeaderContentTemplate dependency property.

HeaderFontSizeProperty

Identifies the HeaderFontSize dependency property.

HeaderForegroundProperty

Identifies the HeaderBackground dependency property.

HeaderMarginProperty

Identifies the HeaderMargin dependency property.

RowBackgroundProperty

Identifies the RowBackground dependency property.

RowBorderBrushProperty

Identifies the RowBorderBrush dependency property.

RowBorderThicknessProperty

Identifies the RowBorderThickness dependency property.

RowHeadersVisibleProperty

Identifies the RowHeadersVisible dependency property.

 Public Properties

  Name Description

AllowColumnReorder

Gets or sets a value indicating whether columns in this header can be reordered interactively. This is a dependency property.

AlternatingRowBackground

Gets or sets the background brush of alternating grid rows. This is a dependency property.

AlternatingRowBorderBrush

Gets or sets the border brush of alternating grid rows. This is a dependency property.

AlternatingRowBorderThickness

Gets or sets the border thickness of alternating grid rows. This is a dependency property.

AutoGenerateColumns

Gets or sets a value indicating whether to automatically generate the necessary grid columns based on the properties of the items in the underlying Items collection. This is a dependency property.

CellBorderBrush

Gets or sets the border brush of the cells in the grid. This is a dependency property.

CellBorderThickness

Gets or sets the border thickness of the cells in the grid. This is a dependency property.

Columns

Gets or sets a list with the columns displayed in the grid.

CurrentCell

Gets or sets the GridCell within this grid, which is currently holding the input focus. This is a dependency property.

HeaderBackground

Gets or sets the brush used to fill the header background. This is a dependency property.

HeaderBorderBrush

Gets or sets border brush of the grid header. This is a dependency property.

HeaderBorderThickness

Gets or sets the border thickness of the grid header. This is a dependency property.

HeaderContentTemplate

Gets or sets the template to use for the individual column headers. This is a dependency property.

HeaderFontSize

Gets or sets the size of the texts displayed in the grid header. This is a dependency property.

HeaderForeground

Gets or sets the brush used to draw the texts displayed in the grid header. This is a dependency property.

HeaderMargin

Gets or sets the margin of the texts displayed in the grid header. This is a dependency property.

LicenseKey

Gets or sets the license key of the control.

RowBackground

Gets or sets the background brush of grid rows. This is a dependency property.

RowBorderBrush

Gets or sets the border brush of grid rows. This is a dependency property.

RowBorderThickness

Gets or sets the border thickness of grid rows. This is a dependency property.

RowHeadersVisible

Gets or sets a value indicating whether row headers are visible. This is a dependency property.

 Public Methods

  Name Description

OnApplyTemplate

FrameworkElement.OnApplyTemplate override.

 Protected Methods

  Name Description

ClearContainerForItemOverride

ItemsControl.ClearContainerForItemOverride override.

GetContainerForItemOverride

ItemsControl.GetContainerForItemOverride override.

IsItemItsOwnContainerOverride

ItemsControl.IsItemItsOwnContainerOverride override.

OnColumnCreating

Raises the ColumnCreating event.

OnItemsSourceChanged

Selector.OnItemsSourceChanged override.

OnKeyDown

ItemsControl.OnKeyDown override.

OnRowClicked

Raises the RowClicked event.

OnTextInput

ItemsControl.OnTextInput override.

PrepareContainerForItemOverride

ItemsControl.PrepareContainerForItemOverride override.

 Public Events

  Name Description

ColumnCreating

Raised when a column is automatically generated by the grid.

RowClicked

Raised when a row in the grid is clicked with the mouse.

 See Also

DataGrid Class
MindFusion.DataViews.Wpf Namespace