Reputation: 21
How do I set the width of a column in a DataGrid
(not a DataGridView
)?
Upvotes: 1
Views: 2694
Reputation: 1
Private Sub dgColumnWidths() 'Var = 0 for first column Dim Var As Integer DataGrid1.Columns(Var).Width = 1000 End Sub
Upvotes: 0
Reputation: 81610
I think it's something like this:
dg.TableStyles(0).GridColumnStyles(0).Width = 120
Upvotes: 2