How To Set Column Width DatagridView VB Net 2013

In this lesson VB NET 2013 we will give you tutorial about datagridview in VB Net 2013. GatagridView usually used for show data / record data in database. You can setting cloumn width in DatagridView for make form good looking.

see also : How to Display Data in ComboBox - VB Net 2013

After have show data in datagridview, you just place code below to set column width in the form :
For example :

DataGridView1.Columns(0).Width = 70
DataGridView1.Columns(1).Width = 150
DataGridView1.Columns(2).Width = 60
DataGridView1.Columns(3).Width = 60

With code above, you can change value width according to your wishes

Thank you for visiting Blog BelajarVB and Stay tuned for our next lesson :)

Subscribe to receive free email updates:

0 Response to "How To Set Column Width DatagridView VB Net 2013"

Post a Comment