1
How to assign column names no datagridview? (VB.NET)

Open 1 Answers 17 Views Software and Applications
How to assign column names no datagridview? (VB.NET)

1 Answer

0

Try this (code below);
        DataGridView1.ColumnCount = 4
        DataGridView1.Columns(0).Name = "SAMPLE NAME 1"
        DataGridView1.Columns(1).Name = "SAMPLE NAME 2"
        DataGridView1.Columns(2).Name = "SAMPLE NAME 3"
        DataGridView1.Columns(3).Name = "SAMPLE NAME 4"

cool

answered Jun 27, 2016 by techydenz New Member (2,240 points)
...