开发者

How to implement paging for datagrid using LINQ to Entities in wpf?

开发者 https://www.devze.com 2022-12-24 19:22 出处:网络
I\'m new in wpf. My main problem is to understand how DataGrid works with its datacontext. It would help me a lot because I don\'t know how to make a universal paging usercontrol for all my datagrids

I'm new in wpf. My main problem is to understand how DataGrid works with its datacontext. It would help me a lot because I don't know how to make a universal paging usercontrol for all my datagrids in the projects for different database tables. DataGrid converts received DataContext from object to some kind of list. How it is implemented? I tried to do some casting from object to IQueryable<System.Data.Objects.DataClasses.EntityObject> to generalize thinig because base class of every entity in the entity model is EntityObject class. But it doesen't work in runtime although I don't receive开发者_StackOverflow complains at design time.


I figured out myself what is all behind datagrid. Even if you didn't understand my question, it's not important anymore and thank you anyway.

0

精彩评论

暂无评论...
验证码 换一张
取 消