Events and commands reference
This page lists all public events exposed by TableView and related types.
TableView events
Data and columns
Editing lifecycle
Selection
Sorting
Clipboard and export
Context flyouts
User interaction
Column reordering
Event args reference
TableViewAutoGeneratingColumnEventArgs
| Property |
Type |
Description |
PropertyName |
string |
Name of the data property |
PropertyType |
Type? |
Runtime type of the property |
Column |
TableViewColumn |
The column being generated; replaceable |
Cancel (inherited) |
bool |
Set true to skip the column |
TableViewBeginningEditEventArgs
| Property |
Type |
Description |
Cell |
TableViewCell |
The cell entering edit mode |
DataItem |
object? |
The row's data object |
Column |
TableViewColumn |
The column |
EditingArgs |
RoutedEventArgs |
The triggering input event |
Cancel (inherited) |
bool |
Set true to block editing |
TableViewCellEditEndingEventArgs
| Property |
Type |
Description |
Cell |
TableViewCell |
The cell in edit mode |
DataItem |
object? |
The row's data object |
Column |
TableViewColumn |
The column |
EditingElement |
FrameworkElement |
The editing control |
EditAction |
TableViewEditAction |
Commit or Cancel |
Cancel (inherited) |
bool |
Set true to stay in edit mode |
TableViewCellSelectionChangedEventArgs
| Property |
Type |
Description |
AddedCells |
IList<TableViewCellSlot> |
Newly selected cells |
RemovedCells |
IList<TableViewCellSlot> |
Newly deselected cells |
TableViewSortingEventArgs
| Property |
Type |
Description |
Column |
TableViewColumn |
The column being sorted |
Handled (inherited) |
bool |
Set true to suppress default sort |
TableViewCopyToClipboardEventArgs
| Property |
Type |
Description |
IncludeHeaders |
bool |
Whether headers are included in the copy |
Handled (inherited) |
bool |
Set true to suppress default copy |
TableViewRowContextFlyoutEventArgs
| Property |
Type |
Description |
Index |
int |
Row index |
Row |
TableViewRow |
The row control |
Item |
object |
The data item |
Flyout |
FlyoutBase? |
The flyout to be shown |
Handled (inherited) |
bool |
Set true to suppress the flyout |
TableViewColumnReorderingEventArgs
| Property |
Type |
Description |
Column |
TableViewColumn |
The column being moved |
Cancel (inherited) |
bool |
Set true to prevent the move |
TableViewColumnReorderedEventArgs
Enums
TableViewEditAction
| Value |
Description |
Commit |
The edit was confirmed |
Cancel |
The edit was cancelled |
TableViewSelectionUnit
| Value |
Description |
CellOrRow |
Cell and row selection are independent |
CellWithRow |
Selecting a cell also selects its row |
Cell |
Cell-only selection |
Row |
Row-only selection |
TableViewGridLinesVisibility
| Value |
Description |
All |
Both horizontal and vertical lines |
Horizontal |
Horizontal lines only |
Vertical |
Vertical lines only |
None |
No lines |
TableViewRowDetailsVisibilityMode
| Value |
Description |
Collapsed |
Details never shown |
Visible |
Details always shown |
VisibleWhenSelected |
Details shown for selected row(s) |
VisibleWhenExpanded |
Details shown when expanded via toggle |
| Value |
Description |
All |
Both row and column headers |
Columns |
Column headers only |
Rows |
Row headers only |
None |
No headers |
| Value |
Description |
None |
No corner button |
SelectAll |
Select-all button |
Options |
Options menu button |
TableViewColumnAutoWidthMode
| Value |
Description |
Both |
Max of header and cell widths |
Cells |
Cell content width only |
Header |
Header content width only |
Related articles