Solved

gridview or html table ??

Posted on 2011-03-10
5
516 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

856 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