Click here to Skip to main content
16,021,417 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to change the data grid view cell height and width at runtime?
Posted

1 solution

you can change below properties
VB
DataGridView.RowHeadersWidth

DataGridView.ColumnHeadersHeight

DataGridViewRow.Height

DataGridViewColumn.Width

for example :
VB
' Set height.
Private Sub Button5_Click(ByVal sender As Object, _
    ByVal e As System.EventArgs) Handles Button5.Click

    Dim row As DataGridViewRow = dataGridView.Rows(0)
    row.Height = 15
End Sub
 
Share this answer
 
Comments
Riyan Oliver 5-Nov-14 0:29am    
Thank you Dam , Its working...
DamithSL 5-Nov-14 1:02am    
mark this as 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