I have a datagrid where i am setting CSS for ItemStyle,Header style and Alternating item style in .aspx page markup as follows
<asp:DataGrid runat="server" ID="dgScannedEsn" AutoGenerateColumns="True" CssClass="gridCls" HeaderStyle-CssClass ="clsItemHeader" AlternatingItemStyle-CssClass ="clsAlternateItemRow"" ItemStyle-CssClass ="clsItemRow" ></asp:DataGrid>
How can i set these CSS classes(HeaderStyle-CssClass,AlternatingItemStyle-CssClass etc) from codebehind ?
Thanks in advance