Please explain the difference

Discussion in 'ASP .Net Datagrid Control' started by Alison, Jul 27, 2005.

  1. Alison

    Alison Guest

    Hi all,

    I'm still wet behind the ears about asp.net. One thing I need to
    understand at the moment is the difference between the various ways of
    displaying data in datagrid.

    One way is,
    <asp:BoundColumn DataField="last_name" HeaderText="Last
    Name"></asp:BoundColumn>

    And the other is,
    <ItemTemplate> <%#Container.DataItem("court_name")%>
    </ItemTemplate>

    There must be a reason for this. What is it? Different capabilities?
    What are the different capabilities?

    Looking forward to be enlightened.
    Alison, Jul 27, 2005
    #1
    1. Advertising

  2. You can put a lot of other things into ItemTemplate. You are much more
    flexible with formatting. You can make your own layout for every item. In
    your case, if all you need is just to show the column value with basing
    formatting, BoundColumn is just fine.

    Eliyahu

    "Alison" <> wrote in message
    news:...
    > Hi all,
    >
    > I'm still wet behind the ears about asp.net. One thing I need to
    > understand at the moment is the difference between the various ways of
    > displaying data in datagrid.
    >
    > One way is,
    > <asp:BoundColumn DataField="last_name" HeaderText="Last
    > Name"></asp:BoundColumn>
    >
    > And the other is,
    > <ItemTemplate> <%#Container.DataItem("court_name")%>
    > </ItemTemplate>
    >
    > There must be a reason for this. What is it? Different capabilities?
    > What are the different capabilities?
    >
    > Looking forward to be enlightened.
    >
    Eliyahu Goldin, Jul 27, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. KK
    Replies:
    2
    Views:
    526
    Big Brian
    Oct 14, 2003
  2. Palindrom
    Replies:
    7
    Views:
    254
    Jonathan Gardner
    Aug 13, 2008
  3. Please explain the difference

    , Jul 27, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    128
  4. Kaye Ng
    Replies:
    8
    Views:
    167
    Josh Cheek
    Jun 8, 2010
  5. Replies:
    1
    Views:
    107
    Thomas 'PointedEars' Lahn
    Dec 31, 2007
Loading...

Share This Page