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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Overview

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 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

Different column types in WPF datagrid


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 shows combobox column type


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 custom column type


Cell templates

Template column in wpf datagrid

Template for built-in column types

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

Template column in wpf datagrid

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.

Different edit template for built-in column type in wpf datagrid


Built-in data validation

The 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.

Data validation on editing in wpf datagrid


90+ WPF CONTROLS

Scroll up 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.