SPServices.GetListItems and ASP Gridviews

Nov 15, 2012 at 10:14 PM

Hello all. I was wondering if anyone can give me an example of calling the getlistitems function and placing it in an asp gridview.

Basically right now I have a list that contains an item Name and Price. I have a form that uses the updatelistitems from the library just fine. I want to display the result in a gridview but I have absolutely no idea how. I've been trying to find examples of it for weeks and have not found much that helps me understand. I'm rather new to JQuery. Any help would be appreciated.

Nov 15, 2012 at 10:27 PM

I also wanted to mention that I'm using MOSS 2007.

Nov 16, 2012 at 2:54 AM

Unfortunately, the ASP.NET GridView control is rather limited in the data sources that it can use. Dynamically generated arrays, etc. don’t appear to be one of them.

There is a jQuery-based GridView in this library (http://www.jqwidgets.com/). I’ve never personally used it so can’t comment on the quality, but it seems that you could use SPServices to populate an array and then use it to source the GridView.

Hopefully someone else has experience with this library and can offer additional guidance.

HTH

Steve

From: manmann55 [email removed]
Sent: Thursday, November 15, 2012 11:15 PM
To: steve.eagleson@sky.com
Subject: SPServices.GetListItems and ASP Gridviews [SPServices:403415]

From: manmann55

Hello all. I was wondering if anyone can give me an example of calling the getlistitems function and placing it in an asp gridview.

Basically right now I have a list that contains an item Name and Price. I have a form that uses the updatelistitems from the library just fine. I want to display the result in a gridview but I have absolutely no idea how. I've been trying to find examples of it for weeks and have not found much that helps me understand. I'm rather new to JQuery. Any help would be appreciated.