vb System.Windows.Forms.DataGridViewButtonColumn.UseColumnTextForButtonValue类(方法)实例源码

下面列出了vb System.Windows.Forms.DataGridViewButtonColumn.UseColumnTextForButtonValue 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.Windows.Form   
Private Sub CreateUnboundButtonColumn()

    ' Initialize the button column.
    Dim buttonColumn As New DataGridViewButtonColumn

    With buttonColumn
        .HeaderText = "Details"
        .Name = "Details"
        .Text = "View Details"

        ' Use the Text property for the button text for all cells rather
        ' than using each cell's value as the text for its own button.
        .UseColumnTextForButtonValue = True
    End With

    ' Add the button column to the control.
    dataGridView1.Columns.Insert(0, buttonColumn)

End Sub


问题


面经


文章

微信
公众号

扫码关注公众号