C
Chicagoboy27
It seems when I use GridView1.Columns.Insert(2, nameColumn); to
dynamically insert a column into a grid I loose all items that are
bound using
<asp:TemplateField HeaderText="E-Mail" >
<ItemTemplate>
<a href='mailto:<%# Eval("email")%>'
target="new"><asp:Label ID="email" runat="server" Text='<%#
Bind("email")%>'></asp:Label></a>
</ItemTemplate>
<ItemStyle Wrap="true" />
</asp:TemplateField>
Here is my scenerio I have an if statement that checks a criteria. if
it matches I want that column in the table.....
I can use the GridView1.Columns.Add(nameColumn); and all the fields
work fine but the added field is in not in the position that I
want......
any suggestions?
dynamically insert a column into a grid I loose all items that are
bound using
<asp:TemplateField HeaderText="E-Mail" >
<ItemTemplate>
<a href='mailto:<%# Eval("email")%>'
target="new"><asp:Label ID="email" runat="server" Text='<%#
Bind("email")%>'></asp:Label></a>
</ItemTemplate>
<ItemStyle Wrap="true" />
</asp:TemplateField>
Here is my scenerio I have an if statement that checks a criteria. if
it matches I want that column in the table.....
I can use the GridView1.Columns.Add(nameColumn); and all the fields
work fine but the added field is in not in the position that I
want......
any suggestions?