单击时设置datagridview按钮颜色和文本

时间:2014-04-21 14:23:40

标签: vb.net datagrid

我在数据网格上创建了​​一个按钮列,点击:

    Private Sub btnRemoveItem_Click(sender As Object, e As EventArgs) Handles btnRemoveItem.Click

    Dim column As DataGridViewButtonColumn
    grdNewInvoice.AutoGenerateColumns = False

    column = New DataGridViewButtonColumn
    grdNewInvoice.Columns.Add(column)

End Sub

我正在尝试访问列的属性以设置每行的颜色和文本。我怎么能这样做?

0 个答案:

没有答案