change background color of dropdown items at runtime on the basis of flag column of a datatable asp.net
问题 i have a dropdown cboVendor in which supplier name is coming now i want background colour to be red whose fullyAgg column (dt contains 11 columns in which fullagg is the 11th column ) is coming as Zero.currently i am doing as shown in the below code but it is taking all of them a zero(which should not happen) .aspx <asp:DropDownList ID="cboVendor" runat="server" AppendDataBoundItems="True" AutoPostBack="true"> <asp:ListItem Value="0">- Select Vendor -</asp:ListItem> </asp:DropDownList> c#