Bonjour, j'ai une grid view dans un tabpanel dans un tabcontainer :
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
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
 <asp:TabContainer ID="TabContainer" runat="server" ActiveTabIndex="0" CssClass="fancy fancy-green">
            <asp:TabPanel ID="Tabstations" runat="server" HeaderText="Liste des Stations">
                <ContentTemplate>
 
                    <asp:UpdatePanel ID="upGrid" runat="server">
                    <ContentTemplate>
                        <div>
                            <asp:Label runat="server" CssClass="sousTitre">Stations actives :</asp:Label><br /><br />
 
                            <asp:GridView ID="listeStations" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" DataSourceID="StationsDataSource" 
                                AllowSorting="True" CellPadding="4" ForeColor="#333333" 
                                BorderColor="#E6E6E6" GridLines="Horizontal"
                                Width="940px" style="font-size: 9pt; color: black; font-family: Arial">
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                    <asp:BoundField DataField="ID_station" HeaderText="ID_station" 
                                        InsertVisible="False" ReadOnly="True" SortExpression="ID_station" 
                                        Visible="False" />
                                    <asp:BoundField DataField="Name_station" HeaderText="Station" 
                                        SortExpression="Name_station">
                                    <ItemStyle Font-Bold="True" Width="160px"/>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Emplacement" HeaderText="PK" 
                                        SortExpression="Emplacement" >
                                    <ItemStyle Width="50px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Propriétaire" HeaderText="Propriétaire" 
                                        SortExpression="Propriétaire" >
                                    <ItemStyle Width="100px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Adresse" HeaderText="Adresse" 
                                        SortExpression="Adresse" >
                                    <ItemStyle Width="200px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="N_aut" HeaderText="Autorisation" 
                                        SortExpression="N_aut" >
 
                                    <ItemStyle Width="20px" />
                                    </asp:BoundField>
 
                                    <asp:BoundField DataField="DD_aut" HeaderText="Début" 
                                        SortExpression="DD_aut" dataformatstring="{0:dd/MM/yyyy}" >
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="DF_aut" HeaderText="Fin" 
                                        SortExpression="DF_aut"  dataformatstring="{0:dd/MM/yyyy}">
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Superficie" HeaderText="Superficie m²" 
                                        SortExpression="Superficie" >
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Redevance" HeaderText="Redevance Dh" 
                                        SortExpression="Redevance" >
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"  Width="20px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Somme" HeaderText="Somme" SortExpression="Somme" >
                                    <ItemStyle Width="160px" />
                                    </asp:BoundField>
                                    <asp:HyperLinkField NavigateUrl="#" Text="Consulter" >
                                    <ItemStyle Font-Size="8pt" Width="10px" />
                                    </asp:HyperLinkField>
 
                                    <asp:HyperLinkField NavigateUrl="#" Text="Exporter" >
                                    <ItemStyle Font-Size="8pt" Width="10px" />
                                    </asp:HyperLinkField>
                                </Columns>
 
                                <EditRowStyle BackColor="#2461BF" />
                                <FooterStyle BackColor="#0066FF" Font-Bold="True" ForeColor="#e9e9e9" />
                                <HeaderStyle BackColor="#0066FF" Font-Bold="false" ForeColor="#e9e9e9" Font-Size ="9"/>
                                <PagerStyle BackColor="#0066FF" ForeColor="#e9e9e9" HorizontalAlign="Center" />
                                <RowStyle BackColor="#f3f3f3" Font-Size ="9"/>
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="false" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                <SortedDescendingHeaderStyle BackColor="#4870BE" />
 
                            </asp:GridView>
                            <asp:SqlDataSource ID="StationsDataSource" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:accessconnection%>" 
                                SelectCommand="SELECT [ID_station], [Name_station], [Latitude], [Longitude], [Emplacement], [Propriétaire], [Adresse], [N_aut], [DD_aut], [DF_aut], [Superficie], [Redevance], [Somme] FROM [StationsServices] order by Name_station">
                            </asp:SqlDataSource>
                            <br /><br />
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel></ContentTemplate>
            </asp:TabPanel>
<asp:TabPanel ID="TabInfos" runat="server" HeaderText="Information">
                <ContentTemplate>
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                </ContentTemplate>
            </asp:TabPanel>
        </asp:TabContainer>
Je ne sais pas comment démarrer ceci :

je veux quand je clique sur le lien consulter je passe a l'onglet TabInfos avec id de l'element sélectionné, vous avez une idée ?