[DevExpress Support Team: CLONED FROM Q472009: GridView Custom Binding with DataTable]
hi support,
I would like to know how to be able to perform sorting and editing using the above MVC GridView binding as my project involves dynamic binding.
GridView - Custom Binding with sorting and editing
Answers approved by DevExpress Support
Hello,
The issue occurs because each item of the provided collection has a subitem that stores values. That is why the grid cannot obtain data source fields. I've modified the project so that the typed collection is in use now.
In addition, please note that you call the ToList() method to obtain each row of the data source and use them further. If your datasource has a lot of records, this will cause performance issues and the whole purpose of custom binding mode will be lost.
Regarding the editing, it isn't different from a normal mode: set the action that will handle updated data and then return the partial view.
Attached is the modified project.
In this case, I suggest that you do not use Custom Binding mode. Use the standard mode instead. I have modified the project accordingly.
This is the sample I've made and implements the custom binding with DataTable and sorting, grouping and paging operations which are not working. Also, I'd like to know how to perform editing on this.
Hi,
Thank you for sending us the sample project. We need some additional time to review it. We will update this thread once we have results to report.
Thanks Kate, hoping to get the solution as soon as possible.