Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2008-06-17
2
Medium Priority
?
391 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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

604 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