Hi,
I have a gridview. The datas are assigned in the codebehind. The values are bound to the grid. I want to perform the sorting. The datas bounded to the grid is stored in a session and i am using this session value to perform the sorting. But it shows the error that
Unable to cast object of type 'System.Collections.Generic.List`1[YourCompany.Modules.Modulename.Info]' to type 'System.Data.DataTable'.
I have returned the value as CBO.FillCollection and while assigning to the datatable it showed the error .So how to fix this and enable the sorting concept.
Please do help soon.
Thanks in advance