Solved

Any grids that support multiple records per row and allow sorting?

Posted on 2008-06-17
2
379 Views
Last Modified: 2013-11-05
I need to create a product catalog page to display multiple products per row and which supports soring.  The default display will be 5 items per row, sorted by price, like this:

$1  $2  $3  $4  $5
$6  $7  $8  $9  $10
$11  $12  $13  $14  $15
etc.

But I need to allow the products to be sorted by product name also.  None of the grids I've looked at so far seem to handle this, but I wonder if I've just missed the right one.  Thanks!
0
Comment
Question by:NorSoft
2 Comments
 
LVL 22

Accepted Solution

by:
prairiedog earned 125 total points
ID: 21813923
No grids will meet your requirements. Grids (DataGrid, or GridView) are used to display multi-column records. But in your case, there is actually only one column repeated five times per row. You might want to use DataList to accomplish your mission. In your case, add a DataList control to your page, and set DataList1.RepeatColumns = 5, and DataList1.RepeatDirection=Horizontal. The only problem is DataList does not have built-in sorting capacity, but it is not hard to add your own sorting mechanism. Here are some links talking about adding sorting to DataList control:
http://www.dotnetjohn.com/articles.aspx?articleid=95
http://www.asp.net/LEARN/data-access/tutorial-45-cs.aspx
0
 

Author Closing Comment

by:NorSoft
ID: 31467884
Thanks for taking the time to give me an alternate solution!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question