We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Overview

The WPF DataGrid control is used for efficiently displaying and manipulating tabular data. Its rich feature set includes functionalities like data binding, editing, sorting, filtering, grouping, and exporting to Excel and PDF file formats. It has also been optimized for working with millions of records, as well as handling high-frequency real-time updates.


Instant loading illustration for WPF datagrid

Instant loading

DataGrid can load millions of records instantly.

Fast data processing of WPF datagrid illustration

Fast data processing

Data processing operations like sorting, filtering, grouping, summaries, and real-time updates are handled efficiently using PLINQ.

Printing illustration of WPF datagrid

Quickly print and export the datagrid content to Excel or PDF file formats.


Data binding

WPF DataGrid has data-binding support to work out-of-the-box with all popular data sources like SQL server, Oracle, DataTable, and IEnumerable, and data providers like LINQ to SQL, ADO.NET, Entity Framework, and WCF Data Service.

Data binding illustration for WPF datagrid


Seamless editing experience

  • Use different built-in column types such as ComboBox, DateTime, and MultiColumn DropDown.
  • Embed any control, such as a progress bar or rating, to view or edit the data in a cell.
  • Commit or rollback changes when the data object implements IEditableObject.
  • Add new records dynamically.

Editing with date picker in WPF datagrid


Built-in data error indication and validation

Validate cells and display error information based on the following validation types:

Also, it’s possible to use:

  • Cell validation
  • Row validation
  • Custom validation

Data validation in WPF datagrid


Data operations

Multicolumn sorting in WPF datagrid

Sorting

Sort data against one or more columns with multiple customization operations. You can also sort by caption summary values when the grid is grouped, or by writing custom logic.

WPF datagrid shows columns grouping

Grouping

Group data by one or more columns either through mouse and touch interactivity in the group drop area or in code behind. Or group data with custom logic.

Excel-like filtering in WPF datagrid

Filter

Filter data with the filter row filter or an intuitive, built-in, Excel-inspired filtering UI.

WPF datagrid shows summary rows

Summaries

Calculate and display sum, min, max, average, count, and custom aggregates in a table or group. Display summaries with different summary types, such as:

  • Total or table summary
  • Group summary
  • Summary in group caption or header
  • Custom summary

Data manipulation

Real-time updates in WPF datagrid

Real time updates

The DataGrid control can handle high-frequency updates even under the most demanding scenarios where the data is sorted and grouped in real-time. The summaries are calculated in an optimized way and the updated summary is displayed in real-time scenarios.

Built-in add new row in WPF datagrid

Built-in add new row

Add a new record in an underlying collection with a built-in row. Place the added new row at the top or bottom, or stick it at the top. It’s also possible to place a newly added row at the top or bottom in a datagrid.

WPF datagrid delete row

Delete row

Delete selected records in a datagrid by pressing the Delete key. You can change it to another key instead of the default, too.

Text searching in WPF datagrid

Search and highlight text in the data of a datagrid and filter records based on the search text.


Selection

Select rows or cells in a similar way to Excel for all keyboard navigations.

Selection in WPF datagrid


Conditional formatting

Customize the appearance of cells, rows, or columns based on data.

Conditional formatting in WPF datagrid


Row and column customization

Auto fitted row height in WPF datagrid

Row height

Users can adjust (auto fit) the row height based on the content of any column or certain columns to enhance the readability of content. It’s also possible to set the row height conditionally.

WPF datagrid shows frozen rows and columns

Freeze panes

Users can freeze rows and columns at the top, bottom, left, and right positions, similar to Excel. Horizontal and vertical scrolling can be performed, except on fixed columns and rows.

WPF datagrid shows unbound column

Unbound column

Display additional columns that are not bound to data. The control supports an expression to calculate values among columns.

WPF datagrid shows unbound rows

Unbound row

Display rows at the top and bottom of the grid with data that is not bound to the ItemsSource.

WPF datagrid shows merged cells with images

Cell merging

Dynamically merge data in adjacent cells and present that data in a single cell. Merge data based on content by writing your own custom logic.

WPF datagrid shows stacked headers

Stacked headers

Stacked headers (column header span) allow users to show unbound header rows. They span the stacked header columns across multiple rows and columns.


Column sizing

Column width can be adjusted (auto fit) based on the content of any column or column header. All the columns can be fit within the viewport of the datagrid.


Master-details view

A master-details view (nested grid view) can be represented through nested grids that can be expanded and collapsed. Functionalities like editing, sorting, filtering, and grouping are supported. Unlimited levels of nested grid relationships are allowed.

Master details view of WPF datagrid


Record template view

Display the additional information of a row using a template. View the record template by expanding and collapsing the record as required.

Record template view in WPF datagrid


Data virtualization

Create records on demand by automatically enabling data virtualization. Load millions of records of data instantly with virtualization enabled.


Incremental loading

Load data while horizontally scrolling (on-demand data loading). This is supported when the ItemsSource is derived from the ISupportIncrementalLoading interface.

On-demand data fetching in WPF datagrid


Paging

Manipulate data using the SfDataPager control to view records in multiple pages. SfDataPager also supports on-demand loading of data.

Data paging in WPF datagrid


Appearance style

The appearance of a datagrid and its inner elements, such as rows, cells, columns, headers, and summary rows, can be customized easily by using styles and templates.

Styling in WPF datagrid


Row drag and drop

Drag and drop rows within a control or between controls.

Row drag and drop in WPF datagrid


Column chooser

Users can change the visibility of columns at runtime using the customizable column chooser UI. 

Column chooser is showing in WPF datagrid


Context menu

The WPF DataGrid control provides an entirely custom context menu to expose the functionality on the user interface. Users can create context menus for different rows such as record row, summary row, and group caption header in an efficient manner.

WPF datagrid shows context menu


Clipboard operations

Perform clipboard operations such as cut, copy, and paste within a control and between other applications such as Notepad or Excel.


Exporting

Exporting to Excel and pdf of WPF datagrid illustration

Excel, PDF, CSV export

Support to export the datagrid to Excel and pdf file formats with the rich set of options.

WPF datagrid print illustration

Print

Support to print the datagrid with several printing customization options.


Serialization

Serialize the WPF datagrid settings to XML format and load back (deserialization) to datagrid using the built-in serialization options.

Serialization documentation


Localization

Localization of WPF datagrid

Localization

Localize all the static default strings in the WPF datagrid to any desired language.

Right to Left of WPF datagrid

Right to left (RTL)

Supports right to left (RTL) direction for users working in right-to-left languages like Hebrew, Arabic, or Persian.


UI Automation

The WPF DataGrid control is compatible with Coded UI and UFT (formerly QTP) automation tools to automate the application with the DataGrid control.

UI automation illustration for WPF datagrid


90+ WPF CONTROLS

Transform your applications today by downloading our free evaluation versionDownload Free Trial

Scroll up icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon