Ich hab das mal so probiert :

Dim table1 As New Table
        Dim tr As New TableRow
        Dim td As New TableCell
        Dim label1 As Label


        Do While reader.HasRows
            table1.Controls.Add(td)
            td.Controls.Add(label1)
            label1.Text = reader.Item(1)

        Loop
        reader.Close()
        Me.Controls.Add(table1)
        table1.Visible = True
funktioniert aber nicht !

-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Brunmair, Patrick
Gesendet: Montag, 24. Mai 2004 12:01
An: [EMAIL PROTECTED]
Betreff: [Asp.net] spalten�berschrift zur laufzeit erstellen

Hallo mal ne frage ,
wie kann ich die tabellen�berschrift dynamisch erstellen , ich habe werte in der db 
und m�chte f�r jeden wert eine spalte . 
danke 

*************************
_______________________________________________
This ASP.NET email is sponsored by:
UDEX ProMenu.Net  - Die Software f�r Navigation - Jetzt kostenlos testen!
Tree- Style, Horizontal- Slide, Vertical- Slide. http://www.udexnet.com

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net
*************************

Antwort per Email an