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. Image for the cookie policy date
Syncfusion Feedback


Overview

WPF DataGrid provides a seamless editing experience to edit cell values using intuitive editors such as date-picker, numeric text box, percent text box, and combo box. It supports non-editable columns such as images, hyperlinks, check boxes and more. Users can embed any control in a cell with template columns.


Widely used column types

The WPF DataGrid control provides support for widely used column types. Users can easily edit the cell values using built-in intuitive editors. The following column types are supported:

  • TextBox
  • Numeric TextBox
  • Currency TextBox
  • DatePicker
  • Percentage TextBox
  • CheckBox
  • MaskedTextBox
  • TimeSpan
  • Image
  • Hyperlink

WPF DataGrid with Different Column Types


Look up data using the drop-down column type. The following editors are supported to select an item from a drop-down:

  • ComboBox
  • Multicolumn drop-down list

WPF DataGrid with ComboBox


Custom column type

Create your own custom column and load different user controls instead of the built-in editor or non-editor controls. Thus, you can perform customized operations for your business application use cases. It’s also possible to change the behavior of built-in column types.

WPF DataGrid with Date Picker Custom Column


Cell templates

WPF DataGrid Column with Template

Template for built-in column types

Embed any control using a template to represent data for any built-in column types.

WPF DataGrid with Templated Column

Template columns

Load any control to represent the data using a template. You can perform mouse and keyboard interactions for the template column easily, like for built-in column types.


Edit template

Display any control on tapping or double-tapping on cell editing using edit templates. You can also display any control conditionally on editing based on the cell value.

WPF DataGrid with Edit Template


Built-in data validation

The WPF DataGrid control supports built-in data error indication or validation when the given value in the cell does not meet the validation rule. Users can define the custom validation rules themselves.

WPF DataGrid Editing and Data Validation


95+ WPF CONTROLS

Scroll up icon