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
|
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
DataKeyNames="TITRE_DOSSIER" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="GridView" Style="text-align: left">
<Columns>
<asp:BoundField DataField="ID_DOSSIER" HeaderText="id" />
<asp:BoundField DataField="TITRE_DOSSIER" HeaderText="Titre dossier" SortExpression="TITRE_DOSSIER" />
<asp:BoundField DataField="DESCRIPTION_DOSSIER" HeaderText="Description" SortExpression="DESCRIPTION_DOSSIER" />
<asp:TemplateField HeaderText="Accès">
<ItemTemplate>
<asp:RadioButtonList ID="RadioButtonListAcces" runat="server" DataSourceID="SqlDataSourceacces"
DataTextField="LBL_TYPE_ACCES" DataValueField="ID_TYPE_ACCES" OnSelectedIndexChanged="OnSelectedIndexChanged" AutoPostBack="true" Visible="true" SelectedValue='<%#DataBinder.Eval(Container.DataItem, "ID_TYPE_ACCES")%>'>
</asp:RadioButtonList><asp:SqlDataSource ID="SqlDataSourceacces" runat="server" ConnectionString="<%$ ConnectionStrings:ChaineConnexion %>"
SelectCommand="SELECT * FROM [TYPE_ACCES]"></asp:SqlDataSource>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Droit d'accès" >
<ItemTemplate><%#DataBinder.Eval(Container.DataItem, "LBL_TYPE_ACCES")%></ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#E3EAEB" />
<SelectedRowStyle BackColor="#0063AD" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#0063AD" ForeColor="White" HorizontalAlign="Left" />
<HeaderStyle BackColor="#0063AD" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
<EditRowStyle BackColor="#7C6F57" />
</asp:GridView> |
Partager