Uhc Uhc
Uhc Uhc

Reputation: 21

Set the width of a column in a datagrid?

How do I set the width of a column in a DataGrid (not a DataGridView)?

Upvotes: 1

Views: 2694

Answers (2)

John Ellis
John Ellis

Reputation: 1

Private Sub dgColumnWidths() 'Var = 0 for first column Dim Var As Integer DataGrid1.Columns(Var).Width = 1000 End Sub

Upvotes: 0

LarsTech
LarsTech

Reputation: 81610

I think it's something like this:

dg.TableStyles(0).GridColumnStyles(0).Width = 120

Upvotes: 2

Related Questions