WPF中的数据网格视图 [英] Data grid view in WPF

查看:54
本文介绍了WPF中的数据网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们
我的应用程序中有一个数据网格视图.并且我想在包含数据网格的foem加载数据网格填充行时,如果存在绑定数据,或者没有,我想用行填充它..?

hi guys
i have a data grid view in my app. and i want when the foem that contains the data grid loads the data grid fill rows if there is binding data or no i want fill it with rows..?

推荐答案

这是什么意思.创建一个包含要与DataGrid列绑定的对象的集合.然后将这些属性与每个属性绑定. ;)

像这样的东西:

使用ICollectionView进行过滤,排序,分组等. [ ^ ]
What does it mean. Create a collection with objects to be bound with the DataGrid columns. and next bind the properties with each of those properties. ;)

Something like this :

Working with ICollectionView for Filter, Sort, Group etc.[^]


这篇关于WPF中的数据网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆