M
Max
What could be causing my datagrid not use display the tablestyles? I know
they are there, I can step through them in the code and set the width, but
the datagrid only displays the default based on the DataSet. It's like as
soon as I set the datasource, none of the styles work.
I've tried creating them using the editor in VS.NET and programmatically
adding them.
Basically the same code as http://www.thescarms.com/dotNet/ColumnStyles.asp
.....
dgUsers.TableStyles.Add(aGridTableStyle)
dgUsers.DataSource = ds.Tables(0)
Doesn't seem to matter if this last bit is included or not. There's only one
table in my datagrid.
dgUsers.Expand(-1)
dgUsers.NavigateTo(0, "tsUsers")
-Max
they are there, I can step through them in the code and set the width, but
the datagrid only displays the default based on the DataSet. It's like as
soon as I set the datasource, none of the styles work.
I've tried creating them using the editor in VS.NET and programmatically
adding them.
Basically the same code as http://www.thescarms.com/dotNet/ColumnStyles.asp
.....
dgUsers.TableStyles.Add(aGridTableStyle)
dgUsers.DataSource = ds.Tables(0)
Doesn't seem to matter if this last bit is included or not. There's only one
table in my datagrid.
dgUsers.Expand(-1)
dgUsers.NavigateTo(0, "tsUsers")
-Max