R
Robert Smith
Hi,
I would like to bind a datafield in gridvew dynamilcally because I want
to use the same grid for 2 different datasets. The column names in the
dataset are the same for both.
In dataset 1 I have a column called AgencyName,
in dataset 2 I have a column name called AdvertiserName both in the 3rd column
Can I bind the field to a particular column in the dataset
I have
<asp:TemplateField HeaderText="Agency_Name">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%#
Bind("Advertiser_Name") %>'></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
Can the Bind command be manipulated to use dataset.table.column[3] etc, if
so how?
Thanks in advance
Robert
I would like to bind a datafield in gridvew dynamilcally because I want
to use the same grid for 2 different datasets. The column names in the
dataset are the same for both.
In dataset 1 I have a column called AgencyName,
in dataset 2 I have a column name called AdvertiserName both in the 3rd column
Can I bind the field to a particular column in the dataset
I have
<asp:TemplateField HeaderText="Agency_Name">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%#
Bind("Advertiser_Name") %>'></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
Can the Bind command be manipulated to use dataset.table.column[3] etc, if
so how?
Thanks in advance
Robert