Solved

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

Posted on 2008-06-17
2
382 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 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