bonjour,
Je debute en .net (et c pas facile-facile)
Je me connecte à une DB Oracle pour afficher un Gridview.
J'aimerais en fonction du champs "STATUS" (à off) Afficher la ligne en Rouge (par exemple).
Voici le code du gridview

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None"
            BorderWidth="1px" CellPadding="4" DataSourceID="SqlDataSource1" 
            EmptyDataText="Il n'y a aucun enregistrement de données à afficher<br>Collecte des informations en cours.<br><br>Veuillez rafraichir la page."
            ForeColor="Black" GridLines="Vertical" PagerSettings-PageButtonCount="10" PageSize="60">
            <FooterStyle BackColor="#CCCC99" />
            <Columns>
                <asp:BoundField DataField="TIMESTAMP" HeaderText="Date" SortExpression="TIMESTAMP" />
                <asp:BoundField DataField="CHASSIS" HeaderText="Serveur Hôte" SortExpression="CHASSIS" />
                <asp:BoundField DataField="SHORTNAMEVM" HeaderText="Serveur" SortExpression="SHORTNAMEVM" />
                <asp:BoundField DataField="STATUS" HeaderText="Etat" SortExpression="STATUS" />
            </Columns>
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
            <PagerSettings Mode="NumericFirstLast" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString_prd-sidb %>"
            ProviderName="<%$ ConnectionStrings:ConnectionString_prd-sidb.ProviderName %>" 
            SelectCommand='SELECT * FROM "STATUS_VMWARE" ORDER BY "TIMESTAMP" DESC'>
        </asp:SqlDataSource>
Merci pour votre aide.