Click here to Skip to main content
15,886,096 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All

How To Add Column Header

DGV 1 OUTPUT LIKE THIS

Class TotPa
I 5


I Expect OUTPUT LIKE This

Class Col1 Col2 Col3 Col4 Col5


Please Tell me..
Posted

1 solution

VB
For i = 0 To 5
           DGV1.Columns.Add("T", i)
          
       Next i
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900