At first,I am sorry for that my this post is completely outside the issue range,But I really want to get your help about this dilemma that dynamically creating TRow to achieve the page grid columns dynamically show.My solutions is followed.
1.Create BaseRowModel For BsGridModel
2.Create DynamicRowModel based on BaseRowModel by using reflection and codedom at running-time.Then to implement MapQuery(IQueryable query) using DynamicRowModel in BsGridRepository.
3.In views, to use reflection to for ConfigureColumns,but I be aware of that TRow is just BaseRowModel from html GridExtensions BsGridFor,I stop here.
So,how can I cross the river.Please Give some Advice,Waiting And Thinking Online!
Thanks,
ShiTAoSome
At first,I am sorry for that my this post is completely outside the issue range,But I really want to get your help about this dilemma that dynamically creating TRow to achieve the page grid columns dynamically show.My solutions is followed. 1.Create BaseRowModel For BsGridModel
2.Create DynamicRowModel based on BaseRowModel by using reflection and codedom at running-time.Then to implement MapQuery(IQueryable query) using DynamicRowModel in BsGridRepository.
3.In views, to use reflection to for ConfigureColumns,but I be aware of that TRow is just BaseRowModel from html GridExtensions BsGridFor,I stop here.
So,how can I cross the river.Please Give some Advice,Waiting And Thinking Online!
Thanks,
ShiTAoSome