[求助]语句执行顺序问题
请大家帮忙,怎样才能先执行this.label1.Visible=true;再执行数据的传输?请看看我下面的代码为什么不行~·
private void button1_Click(object sender, System.EventArgs e)
{
this.label1.Visible=true;
SqlConnection con=new SqlConnection("Integrated Security=sspi;initial Catalog=Northwind;Data Source=JYK1");
string str="select*from test";
myAdapter=new SqlDataAdapter(str,con);
ds=new DataSet();
myAdapter.Fill(ds,"test");
this.dataGrid1.DataSource=ds.Tables[0].DefaultView;
this.label1.Visible=false;
}