Solved

how flexible can asp.net DataGrid get?

Posted on 2008-06-21
11
231 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 6

Expert Comment

by:kennethfine
Comment Utility
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
Comment Utility
Excuse me, I meant to say, "Download VS Express 2008 and use the ListView."
0
 

Author Comment

by:ChefMaha
Comment Utility
ok thanks for your help

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

Author Comment

by:ChefMaha
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

15 Experts available now in Live!

Get 1:1 Help Now