Back to Devexpress

TableView Class

wpf-devexpress-dot-xpf-dot-grid.md

latest5.9 KB
Original Source

TableView Class

A View that displays data in a tabular form.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public class TableView :
    GridViewBase,
    IGridViewFactory<ColumnWrapper, RowBaseWrapper>,
    IGridViewFactoryBase,
    ITableView,
    IFormatsOwner,
    IGroupSummaryDisplayMode,
    IDetailElement<DataViewBase>
vb
Public Class TableView
    Inherits GridViewBase
    Implements IGridViewFactory(Of ColumnWrapper, RowBaseWrapper),
               IGridViewFactoryBase,
               ITableView,
               IFormatsOwner,
               IGroupSummaryDisplayMode,
               IDetailElement(Of DataViewBase)

Remarks

Tip

Topics :

The TableView is used by default. The TableView displays data in a two-dimensional table. The bound data is arranged in columns and rows. Grid columns correspond to data fields in a data source, while rows represent data records.

After you created and customized a new instance of the TableView class, you should assign the instance to the GridControl.View property.

xaml
<dxg:GridControl AutoGenerateColumns="AddNew" 
                 EnableSmartColumnsGeneration="True" 
                 ItemsSource="{Binding Customers}">
    <dxg:GridControl.View>
        <dxg:TableView AllowPerPixelScrolling="True" TotalSummaryPosition="Bottom"/>
    </dxg:GridControl.View>
</dxg:GridControl>

The following code snippets (auto-collected from DevExpress Examples) contain references to the TableView class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-bind-wpf-grid-to-data/CS/CodeBehind/EFCore/LocalData/MainWindow.xaml#L10

xml
<dxg:GridControl.View>
    <dxg:TableView ShowFixedTotalSummary="True" />
</dxg:GridControl.View>

wpf-data-grid-implement-crud-operations/CS/CodeBehind/EFCore/PagedAsyncSource/MainWindow.xaml#L22

xml
<dxg:GridControl.View>
    <dxg:TableView ShowUpdateRowButtons="OnCellEditorOpen" ValidateRow="OnValidateRow"
                   ShowFixedTotalSummary="True" DataSourceRefresh="OnDataSourceRefresh" />

wpf-data-grid-extend-crud-operations/CS/DetailCollectionEditing/MainWindow.xaml#L22

xml
<dxg:GridControl.View>
    <dxg:TableView RowDoubleClickCommand="{Binding RowDoubleClickCommand, ElementName=EditFormBehavior}" NavigationStyle="Row" ValidateRowDeletionCommand="{Binding ValidateRowDeletionCommand}" DataSourceRefreshCommand="{Binding DataSourceRefreshCommand}" ShowFixedTotalSummary="True" />
</dxg:GridControl.View>

wpf-data-grid-process-frequent-data-updates/CS/ChunkAndOptSummariesExample/MainWindow.xaml#L33

xml
<dxg:GridControl.View>
    <dxg:TableView GroupSummaryDisplayMode="AlignByColumns" ShowTotalSummary="True" />
</dxg:GridControl.View>

wpf-data-grid-display-different-details-based-on-master-row-data/CS/WpfApp30/MainWindow.xaml#L22

xml
<dxg:GridControl.View>
    <dxg:TableView ShowGroupPanel="False"/>
</dxg:GridControl.View>

Implements

IPrintableControl

Inheritance

Show 11 items

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control DataViewBase GridDataViewBase GridViewBase TableView

See Also

TableView Members

DevExpress.Xpf.Grid Namespace