SingingEels : Development Community & Resource

Login

Articles

  • ADO.NET (2)
  • ASP.NET (36)
  • 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

Problem with self sorting gridview

(May 11 2009 - 12:59:35 AM by sycho) - [print blog post]

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?

You must be logged in to add comments. If you have not already done so, you can create an account here. If you already are a member, you first need to login before you can comment.

Blog Archives

  • May 2009 - (1)

Related Ads

SingingEels.com as of Sep 02 2010 - 09:21:16 PM - (0.031251)