G
gsb58
Hi!
I'm using Visual Studio .NET 2003 (using C#).
On a form I have a datagrid where I've set the DataSource and
DataMember to receive values
from a view in a SQL 2000 database. It works fine.
However, I do want to change individual column's width.
Now I'v defined DataGridTableStyle Collection for each column, and I've
defined
DataGridColumnStyle Collection for each DataGridTableStyle.
I've set the respective widths but at run time it gives the default
width (preferredColumnWidth)
for each column.
Do I need to produce any code to manipulate the settings I've done?
I have like (for the first column):
dtgtsFirstCol //DataGridTableStyle
and
dttbFirstCol //DataGridColumnStyle
Anybody that could guide me on this?
Me.Name
I'm using Visual Studio .NET 2003 (using C#).
On a form I have a datagrid where I've set the DataSource and
DataMember to receive values
from a view in a SQL 2000 database. It works fine.
However, I do want to change individual column's width.
Now I'v defined DataGridTableStyle Collection for each column, and I've
defined
DataGridColumnStyle Collection for each DataGridTableStyle.
I've set the respective widths but at run time it gives the default
width (preferredColumnWidth)
for each column.
Do I need to produce any code to manipulate the settings I've done?
I have like (for the first column):
dtgtsFirstCol //DataGridTableStyle
and
dttbFirstCol //DataGridColumnStyle
Anybody that could guide me on this?
Me.Name