Solved

gridview or html table ??

Posted on 2011-03-10
5
518 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best book for Internet security 4 47
Load XML element 3 41
ASP.NET VB code for check and insert in a table 4 39
Ajax calendar distorted 4 14
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
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:
The viewer will learn how to count occurrences of each item in an array.

738 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