Announcement

Collapse
No announcement yet.

Button im DataGrid

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Button im DataGrid

    Hallo, ich bin schon am verzweifeln ...
    Ich hab folgenden Code geschrieben um in mein Datagrid pro Zelle einen Button einzufügen:

    <PRE>
    Dim SpalteIndex As New DataGridTextBoxColumn
    Dim B As New Button
    Dim ts As DataGridTableStyle = New DataGridTableStyle

    With SpalteIndex
    .MappingName = "Index"
    .Width = 185
    .TextBox.Controls.Add(B)
    End With

    ts.GridColumnStyles.Add(SpalteIndex)
    Me.DataGrid_Recht.TableStyles.Add(ts)
    </PRE>

    Das klappt auch wunderbar, nur die Buttons sieht man erst wenn man auf die Zelle klickt. Wie kriegt man das hin, dass die Buttons immer angezeigt werden????

    Kann mir jemand helfen?

    Viele Grüße
Working...
X