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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" BackColor="White"
BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4"
DataKeyNames="idCongres" DataSourceID="AccessDataSource3" Height="200px">
<Columns>
<asp:CommandField ShowDeleteButton="True" ShowSelectButton="True"
ShowEditButton="True" ShowInsertButton="True" />
<asp:ImageField DataImageUrlField="Images" HeaderText="Image">
<ControlStyle Height="50px" Width="50px" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="True" />
</asp:ImageField>
<asp:TemplateField ConvertEmptyStringToNull="False"
HeaderText="idTypeReservation" SortExpression="idTypeReservation">
<EditItemTemplate>
<asp:DropDownList ID="DropDownList4" runat="server"
DataSourceID="DataSetTypeResa" DataTextField="libelle"
DataValueField="idTypeReservation">
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server"
Text='<%# getLibTypeResa(Eval("idTypeResa")) %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Libelle" HeaderText="Libelle"
SortExpression="Libelle" />
<asp:BoundField DataField="dateResaDebut" DataFormatString="{0:dd/MM/yyyy}"
HeaderText="dateResaDebut" SortExpression="dateResaDebut">
<ItemStyle Wrap="False" />
</asp:BoundField>
<asp:CheckBoxField DataField="actifTotal" HeaderText="actifTotal"
SortExpression="actifTotal" />
</Columns>
<FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
<HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
<PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
<RowStyle BackColor="White" ForeColor="#003399" />
<SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
<SortedAscendingCellStyle BackColor="#EDF6F6" />
<SortedAscendingHeaderStyle BackColor="#0D4AC4" />
<SortedDescendingCellStyle BackColor="#D6DFDF" />
<SortedDescendingHeaderStyle BackColor="#002876" />
</asp:GridView>
<asp:AccessDataSource ID="DataSetTypeResa" runat="server"
DataFile="~/App_Data/OCC_v9.1.0Web.accdb"
SelectCommand="SELECT * FROM [rTypeResa_ShortList]"></asp:AccessDataSource>
<asp:AccessDataSource ID="AccessDataSource4" runat="server"
DataFile="~/App_Data/OCC_v9.1.0Web.accdb"
SelectCommand="SELECT DISTINCT [libelle], [idAgence] FROM [rAgence_List] ORDER BY [libelle]">
</asp:AccessDataSource>
<asp:AccessDataSource ID="AccessDataSource3" runat="server"
DataFile="~/App_Data/OCC_v9.1.0Web.accdb"
SelectCommand="SELECT * FROM [rCongres] WHERE ([idTypeReservation] = ?)"
OldValuesParameterFormatString="original_{0}">
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList3" Name="idTypeReservation"
PropertyName="SelectedValue" Type="Int32" />
</SelectParameters>
</asp:AccessDataSource>
<asp:GridView ID="GridView2" runat="server">
</asp:GridView> |
Partager