Link to home
Start Free TrialLog in
Avatar of ba272
ba272

asked on

Adjusting column widths fr a DataGrid


Hi,

Here's the code I use to format the columns:


driverStatData = new DataSet();
driverStatTable = new DataTable("DriverStatsTable");
driverStatData.Tables.Add(driverStatTable);
driverStatTable.Columns.Add(new DataColumn("Statistic", typeof(string)));
driverStatTable.Columns.Add(new DataColumn("Col 1", typeof(double)));
driverStatTable.Columns.Add(new DataColumn("Col 2", typeof(double)));
driverStatTable.Columns.Add(new DataColumn("Percent", typeof(string)));


How do I give the first column more width?

Thanks.
Bob
ASKER CERTIFIED SOLUTION
Avatar of Raynard7
Raynard7

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Raynard7
Raynard7

Thanks for the mark and the grade.
Avatar of ba272

ASKER

no problem...