Results 1 to 8 of 8

Thread: Should I use gridview or datalist ? Ur opinion

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    Should I use gridview or datalist ? Ur opinion

    I'm about to build a news section in my website. The news section should look like this:

    Date: 1/1/2008
    Title: News Title
    Summary: News summary
    Details


    When the user clicks on Details , he should be able to read the selected news. All data are saved in access database.


    Now , how would you choose to do it in ASP.NET , would you do it using gridview or datalist or . . . ?
    Last edited by bomayed; Jun 25th, 2007 at 04:19 AM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Should I use gridview or datalist ? Ur opinion

    Repeater control.

  3. #3
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: Should I use gridview or datalist ? Ur opinion

    GridView is out of the question for that kind of task. DataList is nice and flexible and can easily pull off what you need.. I haven't used the Repeater control enough to spout off pros/cons versus the DataList.

  4. #4
    Hyperactive Member kayos's Avatar
    Join Date
    Apr 2004
    Location
    Largo, Florida
    Posts
    306

    Re: Should I use gridview or datalist ? Ur opinion

    i would go with the repeater as well.


    If this post helps, please RATE MY POST!

    Using Visual Studio 2005 SE

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    Re: Should I use gridview or datalist ? Ur opinion

    Thank you guys for your comments

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    Re: Should I use gridview or datalist ? Ur opinion

    I should have asked this , why use a repeater control ? and why not datalist control ?

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Should I use gridview or datalist ? Ur opinion

    Datalist and repeater are rather similar, but there's much more flexibility with the repeater control.

  8. #8
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: Should I use gridview or datalist ? Ur opinion

    A good example of a Repeater control: www.impact-romania.org

    It's not my code, my co-worker wrote the repeater stuff... both the information in the box and the list of names are in repeater controls, with a bit of javascript behind to react to mouseovers. Works pretty well.

    The other lists on that site are all DataLists, I believe.

Posting Permissions

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



Click Here to Expand Forum to Full Width