Are We Still Supposed to Use GridView?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jonathan Wood

    Are We Still Supposed to Use GridView?

    I'm just starting to get up to speed with ASP.NET. Based on what I've read,
    I use the GridView control to display tables of data from a database. And,
    using ObjectDataSourc e, I've found examples of how to implement efficient
    paging in the GridView control.

    But all my books are for .NET 2.0. Looking around, I see sites like
    http://geekswithblogs.net/ranganh/ar...06/117426.aspx that say
    "DataPager Server Control which combined with List View can provide a
    flexible paging mechanism with full customization support. The built-in
    paging mechanism of DataGrid, GridView etc., provide little support for
    customization."

    To be honest, I have no idea what the DataPager or the ListView controls do.
    Does someone who knows tell me what, if any, reason I would have for
    switching from GridView and ObjectDataSourc e to something like DataPager and
    ListView?

    Thanks!

    --
    Jonathan Wood
    SoftCircuits Programming


  • Michael Nemtsev [MVP]

    #2
    Re: Are We Still Supposed to Use GridView?

    Hello Jonathan,

    ListView/DataPager are new ASP.NET 3.5 component which aimed to be used instead
    of GridView.
    Just new level of abstraction to incorporate the latest .NET 3.5 features
    in these controls

    ---
    WBR,
    Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

    "The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it" (c) Michelangelo


    JWI'm just starting to get up to speed with ASP.NET. Based on what
    JWI've read, I use the GridView control to display tables of data from
    JWa database. And, using ObjectDataSourc e, I've found examples of how
    JWto implement efficient paging in the GridView control.
    JW>
    JWBut all my books are for .NET 2.0. Looking around, I see sites like
    JWhttp://geekswithblogs.net/ranganh/ar...06/117426.aspx
    JWthat say "DataPager Server Control which combined with List View can
    JWprovide a flexible paging mechanism with full customization support.
    JWThe built-in paging mechanism of DataGrid, GridView etc., provide
    JWlittle support for customization."
    JW>
    JWTo be honest, I have no idea what the DataPager or the ListView
    JWcontrols do. Does someone who knows tell me what, if any, reason I
    JWwould have for switching from GridView and ObjectDataSourc e to
    JWsomething like DataPager and ListView?
    JW>
    JWThanks!
    JW>


    Comment

    • Patrice

      #3
      Re: Are We Still Supposed to Use GridView?

      The ListView control allows to define the whole markup that is rendered
      making it extremely flexible and customizable. So each time you have to
      render a grid like control just pick the one that best fit your needs,
      either the GridView if it fit your needs or the ListView is you need to take
      full control on the rendered markup.

      Also you(ll find an overview for each control in the doc :
      From http://msdn2.microsoft.com/en-us/library/bb398790.aspx

      --
      Patrice

      "Jonathan Wood" <jwood@softcirc uits.coma écrit dans le message de news:
      uL0YrnodIHA.447 6@TK2MSFTNGP06. phx.gbl...
      I'm just starting to get up to speed with ASP.NET. Based on what I've
      read, I use the GridView control to display tables of data from a
      database. And, using ObjectDataSourc e, I've found examples of how to
      implement efficient paging in the GridView control.
      >
      But all my books are for .NET 2.0. Looking around, I see sites like
      http://geekswithblogs.net/ranganh/ar...06/117426.aspx that say
      "DataPager Server Control which combined with List View can provide a
      flexible paging mechanism with full customization support. The built-in
      paging mechanism of DataGrid, GridView etc., provide little support for
      customization."
      >
      To be honest, I have no idea what the DataPager or the ListView controls
      do. Does someone who knows tell me what, if any, reason I would have for
      switching from GridView and ObjectDataSourc e to something like DataPager
      and ListView?
      >
      Thanks!
      >
      --
      Jonathan Wood
      SoftCircuits Programming

      >

      Comment

      • Jonathan Wood

        #4
        Re: Are We Still Supposed to Use GridView?

        Thanks for the info.

        --
        Jonathan Wood
        SoftCircuits Programming


        "Patrice" <http://www.chez.com/scribe/wrote in message
        news:u169a84dIH A.288@TK2MSFTNG P02.phx.gbl...
        The ListView control allows to define the whole markup that is rendered
        making it extremely flexible and customizable. So each time you have to
        render a grid like control just pick the one that best fit your needs,
        either the GridView if it fit your needs or the ListView is you need to
        take full control on the rendered markup.
        >
        Also you(ll find an overview for each control in the doc :
        From http://msdn2.microsoft.com/en-us/library/bb398790.aspx
        >
        --
        Patrice
        >
        "Jonathan Wood" <jwood@softcirc uits.coma écrit dans le message de news:
        uL0YrnodIHA.447 6@TK2MSFTNGP06. phx.gbl...
        >I'm just starting to get up to speed with ASP.NET. Based on what I've
        >read, I use the GridView control to display tables of data from a
        >database. And, using ObjectDataSourc e, I've found examples of how to
        >implement efficient paging in the GridView control.
        >>
        >But all my books are for .NET 2.0. Looking around, I see sites like
        >http://geekswithblogs.net/ranganh/ar...06/117426.aspx that say
        >"DataPager Server Control which combined with List View can provide a
        >flexible paging mechanism with full customization support. The built-in
        >paging mechanism of DataGrid, GridView etc., provide little support for
        >customization. "
        >>
        >To be honest, I have no idea what the DataPager or the ListView controls
        >do. Does someone who knows tell me what, if any, reason I would have for
        >switching from GridView and ObjectDataSourc e to something like DataPager
        >and ListView?
        >>
        >Thanks!
        >>
        >--
        >Jonathan Wood
        >SoftCircuits Programming
        >http://www.softcircuits.com
        >>
        >
        >

        Comment

        • Jonathan Wood

          #5
          Re: Are We Still Supposed to Use GridView?

          Right. I'm just trying to get a feel for if I should switch or stick with
          GridView.

          Thanks.

          --
          Jonathan Wood
          SoftCircuits Programming


          "Michael Nemtsev [MVP]" <nemtsev@msn.co mwrote in message
          news:900895ec2d 6c78ca44ffb1e41 4c0@msnews.micr osoft.com...
          Hello Jonathan,
          >
          ListView/DataPager are new ASP.NET 3.5 component which aimed to be used
          instead of GridView. Just new level of abstraction to incorporate the
          latest .NET 3.5 features in these controls
          >
          ---
          WBR, Michael Nemtsev [.NET/C# MVP] :: blog:

          "The greatest danger for most of us is not that our aim is too high and we
          miss it, but that it is too low and we reach it" (c) Michelangelo
          >
          JWI'm just starting to get up to speed with ASP.NET. Based on what
          JWI've read, I use the GridView control to display tables of data from
          JWa database. And, using ObjectDataSourc e, I've found examples of how
          JWto implement efficient paging in the GridView control.
          JWJWBut all my books are for .NET 2.0. Looking around, I see sites
          like
          JWhttp://geekswithblogs.net/ranganh/ar...06/117426.aspx
          JWthat say "DataPager Server Control which combined with List View can
          JWprovide a flexible paging mechanism with full customization support.
          JWThe built-in paging mechanism of DataGrid, GridView etc., provide
          JWlittle support for customization."
          JWJWTo be honest, I have no idea what the DataPager or the ListView
          JWcontrols do. Does someone who knows tell me what, if any, reason I
          JWwould have for switching from GridView and ObjectDataSourc e to
          JWsomething like DataPager and ListView?
          JWJWThanks!
          JW>
          >

          Comment

          Working...