DataGrid Class

Represents a control that displays data in a customizable grid.

Definition

Namespace: Aliquo.Windows.Controls
Assembly: Aliquo.Windows.Controls (in Aliquo.Windows.Controls.dll) Version: 5.0.9179.22656
C#
public class DataGrid : Control, IDisposable
Inheritance
Object    DispatcherObject    DependencyObject    Visual    UIElement    FrameworkElement    Control    DataGrid
Implements
IDisposable

Constructors

DataGrid Constructor class.

Properties

AllowFiltering Gets or sets a value indicating whether data filters are allowed.
AllowGrouping Gets or sets a value indicating whether data groupings are allowed.
AllowMultiSelect Gets or sets a value indicating whether multiple row selection is allowed.
AllowResizingColumns Gets or sets a value indicating whether column width adjustment is allowed.
AllowSettingFrozenColumns Gets or sets a value indicating whether frozen column settings are allowed in field configurations.
AllowSorting Gets or sets a value indicating whether data sorts are allowed.
AutoLoad Gets or sets a value indicating whether data loading is performed automatically.
BufferRows Gets or sets the number of records to retrieve in each data load.
ColumnMaxWidth Gets or sets the maximum limit for the auto-calculated width of columns.
Condition Gets or sets the selection condition for the data.
Fields Gets or sets a list with the definition of the data fields of the DataGrid columns.
FrozenColumnCount Gets or sets the number of columns that do not scroll to the left in the DataGrid control.
HasAutofilter Gets a value indicating whether there are any AutoFilters applied.
Host Gets or sets the Extensibility Host.
IsBusy Gets or sets a value indicating whether the control is busy.
ItemsSource Gets or sets the collection that is used to generate the contents of the DataGrid.
OrderBy Gets or sets the sort order of the data and will be applied after the grid sorts.
SelectedItem Gets or sets the selected element.
SelectedItems Gets or sets the selected elements.
SummaryValues Gets a Dictionary<string field, object value> that contains the values ​​to display in the totals row
Tables Gets or sets the table or tables that provide the data for the DataGrid.
TableSummaryRowStyle Gets or sets the style that is applied to all summary rows in the DataGrid.
TableSummaryRowStyleSelector Gets or sets a selector to apply styles to the summary rows of the DataGrid.
TotalRows Gets the total number of records existing in the data query.
UnboundSummaryBottomRows Gets or sets the collection of SummaryRow that are displayed as bottom summary rows in the DataGrid.
UnboundSummaryTopRows Gets or sets the collection of SummaryRow that are displayed as top summary rows in the DataGrid.
UseTableSettings Gets or sets a value indicating whether table settings are used in the data query.
VisibleFilterRow Gets or sets a value indicating whether to display the autofilter row.
VisibleSummaryRow Gets or sets a value indicating whether the totals row is displayed.

Methods

Clear Clear all data items and autofilters.
ClearAutoFilters Clear autofilters from all columns.
CollapseAllGroup Collapses all groups in the DataGrid.
ConfigureFields Displays the fields configuration window.
ContentAsAutoFilter Sets the value of the selected cell as the column's autofilter.
CopyToClipboard Copy the selected data to the clipboard.
Dispose Dispose method.
ExpandAllGroup Expand all groups in the DataGrid.
GetDataViewConditionsGets current information about the status and conditions of the data view.
Load Loads the data.
LoadAsync Performs data loading asynchronously.
OnApplyTemplate OnApplyTemplate method.
(Overrides FrameworkElementOnApplyTemplate)
SelectRow Removes multiple selection leaving the selection of a single row.
ToggleFreezeColumns Moves or freezes the columns to the left of the active cell.

Events

CellDoubleClick Se produce cuando se hace doble clic o toca una celda de datos del control Grid.
CellEnterKeyPress Se produce cuando se presiona la tecla Enter mientras el foco está en una celda de datos del control Grid.
ConfigureFieldsAfter Ocurre después que se cierra la pantalla de configuración de campos del control Grid con la opción Aceptar o Restablecer.
ConfigureFieldsBefore Ocurre antes que se muestre la pantalla de configuración de campos del control Grid.
DataViewChanged Se produce cuando cambia la vista de datos mediante una operación de filtrado, ordenación o configuración de campos.
FieldsChanged Se produce cuando cambia el valor de la propiedad Fields
Prepared Se genera cuando el control está preparado para realizar la carga de datos

Fields

AllowFilteringProperty Identifies the dependency property AllowFiltering.
AllowGroupingProperty Identify the dependency property AllowGrouping.
AllowMultiSelectProperty Identifies the dependency property AllowMultiSelect.
AllowResizingColumnsProperty Identify the dependency property AllowResizingColumns.
AllowSettingFrozenColumnsProperty Identify the dependency property AllowSettingFrozenColumns
AllowSortingProperty Identifies the dependency property AllowSorting.
AutoLoadProperty Identifies the dependency property AutoLoad.
BufferRowsProperty Identifies the dependency property BufferRows.
ColumnMaxWidthProperty Identify the dependency property ColumnMaxWidth.
ConditionProperty Identifies the dependency property Condition.
FieldsChangedEvent Identifies the event FieldsChanged.
FieldsProperty Identifies the dependency property Fields.
FrozenColumnCountProperty Identifies the dependency property FrozenColumnCount
HasAutofilterProperty Identifies the dependency property HasAutofilter.
HostProperty Identifies the dependency property Host.
IsBusyProperty Identifies the dependency property IsBusy.
ItemsSourceProperty Identifies the dependency property ItemsSource.
OrderByProperty Identifies the dependency property OrderBy.
SelectedItemProperty Identifies the dependency property SelectedItem.
SelectedItemsProperty Identifies the dependency property SelectedItems.
SummaryValuesProperty Identifies the dependency property SummaryValues
TablesProperty Identifies the dependency property Tables.
TableSummaryRowStyleProperty Identifies the dependency property TableSummaryRowStyle.
TableSummaryRowStyleSelectorProperty Identifies the dependency property TableSummaryRowStyleSelector
TotalRowsProperty Identifies the dependency property TotalRows.
UnboundSummaryBottomRowsProperty Identify the dependency property UnboundSummaryTopRows.
UnboundSummaryTopRowsProperty Identify the dependency property UnboundSummaryTopRows.
UseTableSettingsProperty Identifies the dependency property UseTableSettings
VisibleFilterRowProperty Identifies the dependency property VisibleFilterRow.
VisibleSummaryRowProperty Identifies the dependency property VisibleSummaryRow.

Extension Methods

GetAttributeFromT Get attribute from a class.
(Defined by ObjectExtensions)
ValidateDataAnnotations Validate class with validator of DataAnnotations.
(Defined by ObjectExtensions)

See Also