I want to pgroammatically change the gridview ItemTemplate properties (mostly CSS Class)
<asp:GridView ID="gvSearchResults" GridLines="None" Width="700px" ShowHeader="False" AutoGenerateColumns="False" DataSourceID="XMLDS" runat="server"><Columns>
<ItemStyle CssClass="WHATEVER" />
So in the gridview rowdatabound event, I want to change the template based on the data for that specific row.
Apart from the data, how can I change the ItemTemplate CSS class for the current row via Code behind?
View Complete Post