Posted on: 10/23/2012 2:15:36 AM | Views : 425

Hi

first can i do like this
<asp:TemplateField HeaderText="Status">
<HeaderStyle HorizontalAlign="Left" />
<ItemStyle HorizontalAlign="Left" />
<ItemTemplate>
<asp:Label runat="server" ID="lblAdvisor" BackColor='<%# Eval("COL")%>' Text='<%# Eval("C_STATUS")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
because i need to get back color attribute depending on my c_status
if the above code is right am getting error at  BackColor---

Specified cast is not valid.
Thank you
...

Go to the complete details ...