Datagridview Cell Width and Height Vb.Net | Visual Studio Code

0
In this post you can learn about how to Datagridview cell width and height in vb.net first of make the table anywhere then paste the below code it working 100 percent. as you can seen the picture below . 

 Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
       
               For i = 0 To DataGridView1.Rows.Count - 1
            Dim r As DataGridViewRow = DataGridView1.Rows(i)
            r.Height = 60
        Next
        
    End Sub

Post a Comment

 
Top