ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grouping And Sorting not Working in DataGrid
Title:
B
I
{code}
?
Hi, is there any Requirements for Grouping By Column in the DataGrid, I have try a lot to do that but it's not working I have Student Table Joining Classs Table Joining School Table And I Displayed Data As Following ID -- StudentName -- SupervisionName -- SchoolName -- ClassName when i trying to Grouping or sorting it gives me an error as following *((Value cannot be null. Parameter name: member))*
Save Changes
Cancel
Loai Alhalabi
asked at 14 Dec 2016
please download again, the very latest, and you'll get a better error message
at 14 Dec 2016
Omu
Thanks, but my Project is running on this Version (i have download it from month ago), anyhow, is there any files I can replace it to give a specific error.I really need grouping and sorting to be done.
at 14 Dec 2016
Loai Alhalabi
download again, and replace all files
at 14 Dec 2016
Omu
This is the Error MSG : Could not find property [SupervisionCenter] on type [Student]. Make sure you specify Key and Column.Bind correctly
at 14 Dec 2016
Loai Alhalabi
When Try it with another Field it gives : DbSortClause expressions must have a type that is order comparable. Parameter name: key
at 14 Dec 2016
Loai Alhalabi
this tells me that you have `GridModelBuilder<Student>` and in a column you have `Bind = 'SupervisionCenter'`, and when you click on it the grid tries to sort on `Student.SupervisionCenter`, an unexistent property; please read more about the grid here: http://aspnetawesome.com/learn/mvc/Grid#Data-binding
at 14 Dec 2016
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK