VS2005下,DataGridView为什么不能显示啊,求救!
VS2005下,DataGridView为什么不能显示啊,求救!
DataGridViewTextBoxColumn STScolumn = new DataGridViewTextBoxColumn();
STScolumn.HeaderText = "File Name ";
STScolumn.Name = "File Name ";
STScolumn.Width = 350;
this.data_view_sts.Columns.Add(STScolumn);
DataGridViewTextBoxColumn FNcolumn = new DataGridViewTextBoxColumn();
FNcolumn.HeaderText = "STS File ";
FNcolumn.Name = "STS File ";
FNcolumn.Width = 300;
this.data_view_sts.Columns.Add(FNcolumn);
DataTable dt_test = new DataTable();
dt_test.TableName = "test ";
dt_test.Columns.Add( "File Name ", System.Type.GetType( "System.String "));
dt_test.Columns.Add( "STS File ", System.Type.GetType( "System.String "));
DataRow drDG = dt_test.NewRow();
drDG[ "File Name "] = "bb ";
drDG[ "STS File "] = "aa ";
dt_test.Rows.Add(drDG);
ds_test.Tables.Add(dt_test);
BindingSource bs = new BindingSource();
bs.DataSource = ds_test;
bs.DataMember = "test ";
&