M
M. Craig
Does anyone have an example or suggestion as to how to programatically
databind a row's background color? I understand how to use an
asp:TemplateColumn to set the BG color on a column, but I want to
dynamically set the BG color based on a value returned from a database
I've tried the following with no success:
<ItemStyle BackColor=<%# DataBinder.Eval(Container.DataItem, "color") %>
/>
the error states that ItemStyle doesn't have a definition for DataBinder.
Help?
thanks.
databind a row's background color? I understand how to use an
asp:TemplateColumn to set the BG color on a column, but I want to
dynamically set the BG color based on a value returned from a database
I've tried the following with no success:
<ItemStyle BackColor=<%# DataBinder.Eval(Container.DataItem, "color") %>
/>
the error states that ItemStyle doesn't have a definition for DataBinder.
Help?
thanks.