How can we transfer the value of a textboxes into the header of a dvgcheckboxes?

Try this…

enter image description here

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    DataGridView1.ColumnCount = 5
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    DataGridView1.Columns(0).Name = TextBox1.Text
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    DataGridView1.Columns(1).Name = DateTimePicker1.Value.Date
End Sub

End Class

Leave a Comment