SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    May 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What ar the differences between Detailsviews and Gridviews

    Can someone explain what each of these are for?

  2. #2
    SitePoint Guru Chroniclemaster1's Avatar
    Join Date
    Jun 2007
    Location
    San Diego, CA
    Posts
    784
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Gridviews are good for massive table-based data collections, you use a gridview when you want to display a lot of records (usually along the vertical axis) and each column is a field of the record. Using gridviews you can get an overview on a lot of information at once, and they page very easily allowing you to go through an database about as fast as possible. One example might be a product catalog. You'd arrange a number of columns for product name, product#, price, description, a checkbox to order, a text field for qty, etc. Then each row lists the info from a database for each of your products.

    Detailsview pulls up whichever fields you specify but only one record at a time. They page easiliy, but are best for situations where you want to focus your attention on one record at a time. Entering information for a new user during registration, and/or making changes to a user account are good times to use a detailsview. If you pull up the wrong person, it should be pretty obvious before you start changing the information (in a gridview it's comparatively easy to select the wrong row to edit and input changes on the wrong user account.)
    Whatever you can do or dream you can, begin it.
    Boldness has genius, power and magic in it. Begin it now.

    Chroniclemaster1, Founder of Earth Chronicle
    A Growing History of our Planet, by our Planet, for our Planet.

  3. #3
    SitePoint Zealot
    Join Date
    May 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Which would I use if I wanted to create a page where people could post comments or reviews?

  4. #4
    SitePoint Guru Chroniclemaster1's Avatar
    Join Date
    Jun 2007
    Location
    San Diego, CA
    Posts
    784
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want to build it yourself, probably a gridview, even if it's only one column. Each comment is most reasonably going to be a record and detailsviews are best for displaying one record at a time.

    I'd also google that though and see what prebuilt stuff you can come up with. If you're looking for free or open source stuff try sourceforge.net
    Good luck!
    Whatever you can do or dream you can, begin it.
    Boldness has genius, power and magic in it. Begin it now.

    Chroniclemaster1, Founder of Earth Chronicle
    A Growing History of our Planet, by our Planet, for our Planet.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •