bertrandkis
Programmer
I want to change the width of a data grid that displays a single column of data to 200. This is how I do it:
Me.grdError.TableStyles.Add(New System.Windows.Forms.DataGridTableStyle())
Me.grdError.TableStyles(0).PreferredColumnWidth = 200
Me.grdError.DataSource = dataset1.Tables(0).DefaultView
But the width does not change at all. Can anyone help?
Me.grdError.TableStyles.Add(New System.Windows.Forms.DataGridTableStyle())
Me.grdError.TableStyles(0).PreferredColumnWidth = 200
Me.grdError.DataSource = dataset1.Tables(0).DefaultView
But the width does not change at all. Can anyone help?