Attribut TableSection ASP.NET
Définition et utilisation
L'attribut TableSection est utilisé pour définir ou renvoyer la position de l'objet TableRow dans le contrôle Table.
Utilisez l'attribut TableSection pour obtenir ou définir la position de l'objet TableRow dans le contrôle Table.
Syntaxe
<asp:TableRow TableSection="section" runat="server"> Some Content </asp:TableRow>
Attribut | Description |
---|---|
section |
Définir la partie de tableau à laquelle appartient cette ligne. Valeurs possibles :
|
Exemple
L'exemple suivant configure l'attribut TableSection du contrôle TableRow :
<form runat="server"> <asp:table id="Table1" runat="server" GridLines="Both"> <asp:TableRow TableSection="TableHeader"> <asp:TableCell>En-tête</asp:TableCell> </asp:TableRow> </asp:table> </form>
Exemple
- Définir la TableSection du contrôle TableRow