Problem with self sorting gridview
(May 11 2009 - 12:59:35 AM
) - [print blog
Thanks for this great class. I was searching for this for a long time and I couldn't get it to work in my program. Now it works but it has one problem in my program.
The code below works just fine:
List <vIntStudent> student = BLStudent.GetAllStudents();
Gridview.datasource = student;
This shows me all the information in my students table.
But I want to not have all the information in my table. So I do in the gridview on the aspx page:
<singleEels:selfsortinggridview id="GridView1" runat="server" allowsorting="true">
<asp:boundfield headertext="test" datafield="fieldInTable" sortexpressioin="fieldInTable" />
This gives me an 'object reference not set to an instance of an object' error. I've debugged the selfsortinggridview class and everything is filled in correctly but when I come in the LateBoundSorter class it gives the above error. There is going something wrong in the GetPropertyValue.
Can somebody help me with this?