Gridview and Bind()

G

Guest

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top