Trouble sizing datagrid column

VonEhle

Active member
Joined
Feb 20, 2006
Messages
26
Programming Experience
Beginner
I'm trying to resize some columns on a datagrid, but keep getting an error.

Here's the code I'm trying to use...

VB.NET:
dim dgColumnStyle as DataGridColumnStyle
dgColumnStyle = dgBooks.TableStyles(0).GridColumnStyles("Title")   'Error on this line
dgColumnStyle.Width = 200

I get an outofRangeException.
 
Back
Top