U
UJ
How do you apply a css style to a bound column? I've tried the following
code:
<asp:BoundColumn DataField="CompanyName" SortExpression="CompanyName"
HeaderText="Company" headerimageurl="../images/colcompany.gif" >
<ItemStyle cssclass='<%# SelectCellStyle(Container.DataItem("Selected"))
%>'></ItemStyle>
</asp:BoundColumn>
and get the error message BC30676: 'DataBinding' is not an event of
'System.Web.UI.WebControls.TableItemStyle'.
So how do I apply the style to the bound column?
TIA.
code:
<asp:BoundColumn DataField="CompanyName" SortExpression="CompanyName"
HeaderText="Company" headerimageurl="../images/colcompany.gif" >
<ItemStyle cssclass='<%# SelectCellStyle(Container.DataItem("Selected"))
%>'></ItemStyle>
</asp:BoundColumn>
and get the error message BC30676: 'DataBinding' is not an event of
'System.Web.UI.WebControls.TableItemStyle'.
So how do I apply the style to the bound column?
TIA.