Showing posts with label datagrid. Show all posts
Showing posts with label datagrid. Show all posts

Monday, March 12, 2012

paging problem

hi sir

i am using datagrid inbulit pageing.my page size 5.i have 100 records.i have one template column checkbox .when i check 4 records of first page then move to next page then prv page checkbox checked removed how i presit the provies state of datagrid.

Regards

Irvendeep

It sounds like you are refreshing the data in your grid for each page that you navigate to. The changes that you make are not sent to SQL Server until you tell your application to send them. If you don't send the changes to SQL Server before you refresh your result set, then anything you changed in the data grid will get thrown away.

Friday, March 9, 2012

Pagination without datagrid

I'm working on a website where we're using .Net web services to feed data to a Flash front-end. The site will have a comments section and we want to display 15 or so comments per page with 'back' and 'next' functionalitiy. We'd also like to show the number of pages of comments and highlight the page they're on. The standard stuff that datagrids do so well.

How can this be accomplished without a datagrid?

There's a good page that explains a number of ways to do this using classic ASP. Some of the solutions they implement I can most likely use with .Net.

http://www.aspfaq.com/show.asp?id=2120

But I wanted to ask the community. How to paginate without a recordset? Sql Server 2000 back-end, ASP.NET 1.x

Thanks.Why don't you want to use a datagrid?|||We aren't using a DataGrid because our 'front-end' isn't an aspx page it's a Flash application that we're feeding the data to via a webservice.

Correct me if I'm wrong but I don't think a DataGrid is an option with this situation.|||

I see. Sorry, I missed that part. Well, if you are using web services to a flash front end, I would assume that your data isn't going to change very often. I would see about getting your data into a dataset, formatting the output into a cache object with a sqldependancy.

Beyond that, I would have to know a lot more about how your web service interacts with your flash front end.