Gridview and Bind()

Discussion in 'ASP .Net' started by =?Utf-8?B?ZGF2ZQ==?=, Nov 17, 2006.

  1. I am using sqldatasource and the gridview for editing a number of admin tables.

    I woud like to use column index number in the following statement
    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind(0)
    %>'></asp:TextBox>

    It appears that i must explicity name the column name in the aspx page like
    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("fieldname")
    %>'></asp:TextBox>

    Is this true? ( i would like to refer to column index number instead)

    thx
    dave
     
    =?Utf-8?B?ZGF2ZQ==?=, Nov 17, 2006
    #1
    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. mr2_93
    Replies:
    1
    Views:
    3,625
    mr2_93
    Oct 2, 2005
  2. Miguel Dias Moura

    How to create data and bind it to a GridView?

    Miguel Dias Moura, Feb 7, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    506
  3. Miguel Dias Moura
    Replies:
    2
    Views:
    9,319
    Yamini
    Apr 14, 2011
  4. =?Utf-8?B?bWdvbnphbGVzMw==?=

    GridView Hierarchical View - Gridview in Gridview

    =?Utf-8?B?bWdvbnphbGVzMw==?=, May 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    18,009
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    May 9, 2006
  5. Replies:
    0
    Views:
    598
Loading...

Share This Page