Skip to content

DataControlBase class

Provides a base class for data controls that display a collection of items as rows.

public abstract class DataControlBase : TemplatedControl, IBandsOwner, ISortedInfoCollectionOwner

Public Members

name description
ActiveEditor { get; } Gets the currently active in-place editor.
AllowEditing { get; set; } Gets or sets whether users can edit cell values.
AllowImmediateEditorValuePosting { get; set; } Gets or sets whether editor values are posted immediately as they change.
AutoScrollToFocusedRow { get; set; } Gets or sets whether the view scrolls automatically to keep the focused row visible.
EditorButtonShowMode { get; set; } Gets or sets when editor buttons are displayed.
EditorShowMode { get; set; } Gets or sets when in-place editors are activated.
FilterString { get; set; } Gets or sets the filter criteria string applied to the data.
FocusedItem { get; set; } Gets or sets the focused data item.
virtual HeaderDropIndex { get; set; } Gets or sets the index at which a dragged column header is dropped.
IgnoreValidationAttributesOnCommit { get; set; } Gets or sets whether validation attributes are ignored when committing cell values.
IsColumnChooserVisible { get; set; } Gets or sets whether the column chooser is displayed.
IsFilterEnabled { get; set; } Gets or sets whether filtering is enabled.
IsSearchPanelVisible { get; set; } Gets or sets whether the search panel is visible.
ItemsSource { get; set; } Gets or sets the data source whose items are displayed by the control as rows.
KeepSelectedOnClick { get; set; } Gets or sets whether the selected row remains selected when clicked again.
RowLevelIndent { get; set; } Gets or sets the indent applied per row nesting level.
RowMinHeight { get; set; } Gets or sets the minimum height of rows.
SearchPanelDisplayMode { get; set; } Gets or sets when the search panel is displayed.
SearchPanelHighlightResults { get; set; } Gets or sets whether search results are highlighted.
SearchText { get; set; } Gets or sets the search text entered in the search panel.
SelectedItems { get; set; } Gets or sets the collection of selected data items.
SelectionMode { get; set; } Gets or sets whether users can select a single row or multiple rows.
ShowItemsSourceErrors { get; set; } Gets or sets whether validation errors of the source items are displayed.
ShowSearchPanelCloseButton { get; set; } Gets or sets whether the search panel shows a close button.
TextSortMode { get; set; } Gets or sets how text values are compared when sorting.
ValidateCellValuesOnShowAndUpdate { get; set; } Gets or sets whether cell values are validated when shown and updated.
event EndSorting Occurs after data sorting is completed.
event FilterChanged Occurs when the data filter is changed.
event InvalidCellValueException Occurs when an exception is thrown while posting an invalid cell value.
event StartSorting Occurs before data sorting is started.
virtual BeginDataUpdate() Prevents the control from updating its data until EndDataUpdate or CancelDataUpdate is called.
BeginSelection() Prevents selection updates until EndSelection is called.
CancelDataUpdate() Resumes data updates after BeginDataUpdate without refreshing the control's data.
ClearAllColumnsFilter() Clears filter conditions applied by all columns.
ClearSelection() Clears the current selection.
ClearSorting() Removes sorting applied to all columns.
CloseEditor() Closes the active in-place editor.
virtual CommitEditing() Completes the current edit session by closing the active in-place editor.
CopyToClipboardAsync() Copies column captions and selected rows to the clipboard.
virtual EndDataUpdate() Resumes data updates after BeginDataUpdate and refreshes the control's data.
EndSelection() Applies the selection changes made since BeginSelection.
ExportToCsv(…) Exports the control's visible data to the specified file in CSV format. (2 methods)
HideColumnChooser() Hides the column chooser.
HideEditor() Hides the active in-place editor.
MoveNextPage() Moves focus to the first row of the next page.
MovePrevPage() Moves focus to the last row of the previous page.
PostEditor() Posts the edited value to the data source.
ResizeBand(…) Sets the same width for all columns displayed within the specified band.
ResizeColumn(…) Sets the width of the specified column.
SelectAll() Selects all rows.
ShowColumnChooser() Displays the column chooser.
ShowEditor() Activates the in-place editor for the focused cell and selects its content.
const AutoFilterRowIndex Represents the visible index that identifies the auto-filter row.
static GetIsFocusWithin(…) Gets whether keyboard focus is within the specified element.

See Also