Solved

how flexible can asp.net DataGrid get?

Posted on 2008-06-21
11
232 Views
Last Modified: 2013-11-26
I wanted to know whether I could achieve a structure identical to the attached image using ASP.NET DataGrid (or any other control in  ASP.NET). The most important point is that I fill the below structure with data from a database. do you think it's possible?

btw, the first 2 columns can be created easily. but what I'm really concerned with is the beneath slot (where the number goes)

I'd appreicate your help
MenuScreenShot.bmp
0
Comment
Question by:ChefMaha
  • 5
  • 4
  • 2
11 Comments
 
LVL 6

Expert Comment

by:kennethfine
ID: 21839776
Hi ChefMaha,

The new ASP.NET 3.5 ListView control is exactly what you want, along with (maybe) the new DataPager control. This tutorial will tell you everything you need to know:
http://aspnet.4guysfromrolla.com/articles/010208-1.aspx
0
 
LVL 6

Expert Comment

by:kennethfine
ID: 21839779
Also, see here for some examples of how flexibly the ListView control can be used:
http://blogs.msdn.com/mikeormond/archive/2008/01/23/some-asp-net-3-5-listview-control-examples.aspx

The ListView is a great addition to ASP.NET, especially coupled with the DataPager. The GridView is complex and "mysterious" if you try to customize it. The Repeater isn't featured enough. ListView hits the sweet spot. Try it, you'll like it. ;)
0
 
LVL 11

Accepted Solution

by:
anuragal earned 200 total points
ID: 21840341
As you have posted your question in Zone VS 2003 so i beleive you are working in .net 1.1

I think you can use the Data Repeater control.. It will give you the flexibility of showing data in one line either horiz or vertically

Anurag
0
 
LVL 6

Expert Comment

by:kennethfine
ID: 21840473
If you intend to ever have any kind of "paging" on those menus -- i.e. "show next 10 delicious food items" -- an ASP.NET ListView + DataPager is the way to go. It will save you a lot of development pain. If you don't or you're compelled to work under ASP.NET 1.1 a repeater or a DataLIst can be made to work.

If you aren't using ASP.NET 2.0 with the 3.5 extensions, I would recommend it. Visual Studio (Express) 2005 and above are much better environments for web development than the older versions of VS.NET.
0
 

Author Comment

by:ChefMaha
ID: 21841456
thanks for your help.

I am working on VS 2003 but to follow your advice,  I'm downloading VS express 2005

now let's start with Data Repeater control anuragal, I remember seeing it somewhere. But, I can't find it in the control list. Where can I find it and use it?

thanks again
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 6

Expert Comment

by:kennethfine
ID: 21843059
Download VS Express 2008 and use the DataList.

If you want to use the other control, it's just called the "Repeater." It should be in the toolbox once you start an ASP.NET page.

0
 
LVL 6

Assisted Solution

by:kennethfine
kennethfine earned 50 total points
ID: 21843061
Excuse me, I meant to say, "Download VS Express 2008 and use the ListView."
0
 

Author Comment

by:ChefMaha
ID: 21843542
ok thanks for your help

I'll get back to you once I get things running
0
 

Author Comment

by:ChefMaha
ID: 21871900
hi. just to keep you updated, I wanna tell you that I tried to download VS Express2005, but it was terribly slow cuz my net connection is pretty slow.

therefore, I will probably go for the repeater control with 2003
0
 

Author Comment

by:ChefMaha
ID: 21871946
I think I'll use the ASP.NET DataList

what do you think?
0
 
LVL 11

Assisted Solution

by:anuragal
anuragal earned 200 total points
ID: 21872211
Hey

you can use DataList, i guess it will do the task for you. Here is a good article for how to use Datalist control.

https://secure.codeproject.com/KB/books/master_aspnet.aspx

Anurag
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

863 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

26 Experts available now in Live!

Get 1:1 Help Now