Salutations voyageurs du Web !
Petit problème simple, je dispose d'une GridView dans une page :
Oulah c'est lourd !
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
26
27
28
29
30
31
32
33 <asp:GridView ID="GridModif" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="id_formation" DataSourceID="source_Formation" AllowSorting="True" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" Width="90%"> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> <Columns> <asp:TemplateField HeaderText="id_formation" SortExpression="id_formation"> <EditItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%# Eval("id_formation") %>'></asp:Label> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%# Bind("id_formation") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="libelle_formation" HeaderText="libelle_formation" SortExpression="libelle_formation" /> <asp:BoundField DataField="validite_formation" HeaderText="validite_formation" SortExpression="validite_formation" /> <asp:BoundField DataField="actif_formation" HeaderText="actif_formation" SortExpression="actif_formation" /> <asp:CommandField ShowEditButton="true" /> <asp:CommandField ShowDeleteButton="True" DeleteText="Désactiver" /> </Columns> <EditRowStyle BackColor="#999999" /> <FooterStyle BackColor="#00519d" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#00519d" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#E9E7E2" /> <SortedAscendingHeaderStyle BackColor="#506C8C" /> <SortedDescendingCellStyle BackColor="#FFFDF8" /> <SortedDescendingHeaderStyle BackColor="#6F8DAE" /> </asp:GridView>
Et voila le soucis, il est clairement visible, je n'arrive pas à mettre tout mes éléments de de style en css (La plupart généré par Visual Studio :p)
Combo gagnant, j'ai une petite dizaine de GridView comme celui-ci dans tout mon projet, s'il est possible de faire un css qui me prendra tout ça en compte ce serait juste ... un soulagement pour mon code, au combien trop chargé !
Merci d'avance !
Krishnak
Partager