Solved

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

Posted on 2008-06-17
2
371 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now