Asp.Net News
Free Tech Magazines
Asp.Net Web Hosting
Suggest Us
Link to Us
Feeds Subscription
Questions & Answers
Tips & Tricks
 Can I order paged results horizontally using pager from local lesson?
Posted by Charlie Childs on  4/23/2010 8:22:13 AM Category: ADO.NET
Add to my favorites
Email to friend


I used VWD 2008 Express to build a pager from Moderator1's Lesson which is located here -

My datalist displays horiziontally - 4 images + lable per row. Is it possible for the images to be ordered horizontally first and then verically?

For example - page is set to return 20 results per page - so 5 rows.
The furtherst left column has Alfred, Anthony, Brian, Baz and Charlie in that order vertically.
The next column has Christine, David, Edward, Fred and Harry in that order vertically.
The next column has Isabelle, Jake, Lizzy, Mandy and Nick in that order vertically.
The next column has Ozzie, Paul, Robin, Steve and Trevor in that order vertically.
So the order is going from top to bottom then left to right - meaning that the fiirst row will show - Alfred, Christine, Isabelle and Ozzie.

Is there any way to order the results by going left to right and then top to bottom. This is how results were ordered before adding the pager to the page.
Like :-
Top row = Alfred, Anthony, Brian, Baz
Next row = Charlie, Christine, David, Edward
Next row = Fred, Harry, Isabelle, Jake,
Next row = Lizzy, Mandy etc. etc.

ASPDOTNETCODES pager lesson is the first time I have used C#. I have only been learning programming for 3 months in spare time and with VB before attemting that lesson. I am seriously pleased but also seriously heady. An answer of whether this is possible would be appreciated. Assistance would be greately appreciated.

The only part of the pager lesson which mentions rows and columns is this:-

private void doPaging()
DataTable dt = new DataTable();
for (int i = 0; i < pds.PageCount; i++)
DataRow dr = dt.NewRow();
dr[0] = i;
dr[1] = i + 1;

dlPaging.DataSource = dt;

Post Your Reply Post New Question

 Viewer's Reply
Answered By Charlie Childs on 4/23/2010 10:22:58 AM
Sorry for any inconvenience. Original datalist properties were showing as set to vertical.

EXCELLENT pager. Thankyou.
Post Your Reply If you still have problem, post it again under this reply for better response.

Sponsored by
Oracle Magazine
Building a Web Application Security Program
The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition - Free 207 Page Preview!