Comparison: Standard WPF DataGrid and DevExpress WPF GridControl

Comparison: Standard WPF DataGrid and DevExpress WPF GridControl

This article describes the main differences between Standard WPF DataGrid and DevExpress WPF GridControl. Use it to migrate from the Standard WPF DataGrid to the DevExpress WPF GridControl.

 

Display Data

Standard WPF DataGrid
Displays data in tabular format. To configure data presentation, customize the control and column objects.
DevExpress WPF GridControl

Uses three types of views to display data. To configure data presentation, customize the View and column objects:

 

Bind to Data

Standard WPF DataGrid and DevExpress WPF GridControl use the same property to bind to data - ItemsSource.

#Columns

Standard WPF DataGrid
Columns use the Binding or SelectedItemBinding property to bind to data. A DataGridTemplateColumn defines data binding inside a cell template.
DevExpress WPF GridControl

Columns use the FieldName and Binding properties to bind to data.

The Binding property uses the standard binding mechanism. The FieldName uses PropertyDescriptor objects and has better performance than the Binding property. Refer to the following topic for more information on trade-offs between performance and flexibility: Binding Columns to Data Source Fields.

You cannot use the FieldName property to bind a column to a collection property. To display such a property in a GridControl cell, use any of the following techniques:

  • Change the field type from a collection to Object in your application’s Model.
  • Use the Binding property.

GridControl uses the FieldName property to identify columns. When you use the Binding property, the FieldName property is set automatically. Refer to the following topic for more information: Binding Columns to Data Source Fields - How the GridControl Identifies Columns.

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(30)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2018-12-05 C# lock
2017-12-05 System.DirectoryServices Namespace
2017-12-05 用户和用户组,以及文件和文件夹的权限
2017-12-05 win10中让Visual Studio默认使用Administrator权限运行
2017-12-05 Unable to access the IIS metabase
2016-12-05 devenv.exe assert failure
2014-12-05 arp攻击的处理方法
点击右上角即可分享
微信分享提示