SqlCeConnection con1=new SqlCeConnection(@"Data Source=C:\\Users\\Ahmed\\documents\\visual studio 2010\\Projects\\WindowsFormsApplication6\\WindowsFormsApplication6\\Database1.sdf");
con1.Open();
SqlCeDataAdapter com1=new SqlCeDataAdapter("select * from Customer where Size No = "+textBox1.Text,con1);
DataTable dt = new DataTable();
com1.Fill(dt);
dataGridView1.DataSource = dt;
con1.Close();
问问题
64 次