Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ASP.net VB.net use code to bind a GridView templatre column

Hi
I have the following two ASP.net GridVidew template columns
The first binds to EmloyeeName but the second has to bind to various
other columns. What VB.net code would I use to bind that column programatically?

              <asp:TemplateField HeaderText="Employee Name" Visible="true">
                           <ItemTemplate>
                                <asp:Label ID="lblEmployeeName" runat="server" Text='<%# Bind("EmployeeName")%>' Visible="true"></asp:Label>
                           </ItemTemplate>
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="T2" Visible="true">
                           <ItemTemplate>
                                <asp:Textbox ID="T2" runat="server"  Visible="true" Width="10"></asp:Textbox>
                           </ItemTemplate>
                      </asp:TemplateField>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Thanks very much