Posted on: 2/24/2014 11:54:31 AM | Views : 631

Hello,
Based on the Category ID, I'd like to show different styling and different fields for an ItemTemplate like the one below.

<asp:TemplateField HeaderText="Description" SortExpression="Description"> <ItemTemplate>                  <p style="text-align:left;margin-top:20px;"><asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' Font-Bold="true"></asp:Label></p>                    <p style="text-align:left;"><asp:Label ID="Description" runat="server" Text='<%# Eval("Description") %>'></asp:Label></p>             &nbs ...

Go to the complete details ...