D
Darryn Ross
Hi....
I am adding my own table and column style to my datagrid, but when i view the form the field width isn' what i set it too in my code?
A snippet of my code is as follows...
DataGridTableStyle TSTblStyle = new DataGridTableStyle() ;
TSTblStyle.MappingName = "tbl";
DataGridColumnStyle TCChartCode = new DataGridTextBoxColumn() ;
TCCode.MappingName = "Code";
TCCode.HeaderText = "Code";
TCCode.Width = 11 ;
TSTblStyle.GridColumnStyles.Add(TCChartCode) ;
dg.TableStyles.Add(TSTblStyle) ;
I am adding my own table and column style to my datagrid, but when i view the form the field width isn' what i set it too in my code?
A snippet of my code is as follows...
DataGridTableStyle TSTblStyle = new DataGridTableStyle() ;
TSTblStyle.MappingName = "tbl";
DataGridColumnStyle TCChartCode = new DataGridTextBoxColumn() ;
TCCode.MappingName = "Code";
TCCode.HeaderText = "Code";
TCCode.Width = 11 ;
TSTblStyle.GridColumnStyles.Add(TCChartCode) ;
dg.TableStyles.Add(TSTblStyle) ;