SingingEels : Development Community & Resource

Login

Articles

  • ADO.NET (2)
  • ASP.NET (36)
  • Azure (0)
  • LINQ (5)
  • Security (2)
  • Silverlight (3)
  • SQL (7)
  • Standards (5)
  • WCF (2)

Syndication

  • Articles RSS
  • Blogs RSS

Contribute

  • Our Authors List
  • Member Sign-Up
  • Suggestions Box
Monday, May 11, 2009 : 12:59 AM - (0 comments)

Problem with self sorting gridview

Hi

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;

Gridview.databind();

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">

<columns>

<asp:boundfield headertext="test" datafield="fieldInTable" sortexpressioin="fieldInTable" />

</columns>

</singleEels:selfsortinggridview>

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?

Blog Archives

  • May 2009 - (1)

Related Ads

SingingEels.com as of Feb 04 2012 - 12:36:48 AM - (0.078122)