Solved

gridview or html table ??

Posted on 2011-03-10
5
508 Views
Last Modified: 2012-06-21
I was requested to build a table with updatable fields, is sort of a gridview but all the cell labels will be static , but I need to chnage the ability to chnage the color according to a drop down filed which will select the status of the room.. Would I go for a gridview or just create a table and have those fields some how pull the status from a db?
do you prefer a GridView or a HTML table?

Whats the best approach?
0
Comment
Question by:TonyReba
  • 3
  • 2
5 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 35099611
Personally I would still go with a GridView. It's going to render as a HTML table anyway, but you get the added programmability should you need it.
0
 
LVL 9

Author Comment

by:TonyReba
ID: 35099954
How about ListView?

I guess, the only concer is that I have to somehitng like            

Room                         Floor                                     Status
101                               1                                         open
102                               2                                         occupied
103
(fixed number )         (fixed number )                        (chnage)

I need to update the status regulary, so whats the best thig I should go?
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 35099993
Not sure a ListView would necessarily be the best option. A Repeater might work for you, it's more lightweight than the GridView and you could still configure it to output a table. I guess it really depends on how much you need to customize the behaviour.
0
 
LVL 9

Author Comment

by:TonyReba
ID: 35100052
well I need to be able to update ,delete in the backend. thats all. so should I go with the gridview?
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 35100075
I would. If you need to edit the data that you are showing, and you want it in a tabular format, then the GridView with certainly be the easiest to work with.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

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