AspDotNetAtoms.com provides daily updates on ASP.NET Tutorials, Programming Resources, .NET Articles, Authors and more.

Categories

Recent Posts

ObjectDataSource in Depth (Part 2) : Manuel Abadia

Friday, September 12 2008

I’m going to add paging support to the example I was using for the ObjectDataSource. First we have to enable it in the GridView setting the AllowPaging property to "true". Also, set the PageSize to something low and insert more rows to the Products table. Now we have to set the EnablePaging property in the ObjectDataSource to let it know that we want to support paging. If we have enabled paging, our select method will need to handle two additional parameters. Their names are configurable using the StartRowIndexParameterName and MaximumRowsParameterName properties. If we don’t set those properties the default values are used: startRowIndex and maximumRow. For the example I used startIndex and maxRows respectively....

Read More:
ObjectDataSource in Depth (Part 2) : Manuel Abadia
Also See:
Nested GridView Grouping and Displaying SubTotals and GrandTotals : Mohammad Azam
Performing Batch Deletes from the Database : Scott Mitchell
Save and Retrieve Images from the Database using ASP.NET 2.0 and ASP.NET 3.5 : Suprotim Agarwal
Updating the TableAdapter to Use JOINs : Scott Mitchell
Master/Detail Part 2: Filtering With Two DropDownLists : Scott Mitchell

Post your comment

Comment