Hi, i have a databound that diaplys to columns
Server - Message
Server1 - 5 alerts
Server3 - 8 alerts
Server2 - 10 alerts
I would like to do that:
If the text on column "message" contains a value between 8-10 change color of row to red
If the text on column "message" contains a value between 5-7 change color of row to yellow
If the text on column "message" contains a value between 1-4 change color of row to orange
I have tried this:
<asp:GridView ID="GridView1" runat="server" ShowHeader="False" AutoGenerateColumns="False"
DataSourceID="SqlDataSource1" Height="360px" Width="100%" onrowdatabound="rowcolor" DataKeyNames="message" >
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:BoundField DataField="Devices" ...
Go to the complete details ...