在Button_Click事件上连接好了数据库,接着怎么显示到DataGrid上啊。
private void button1_Click(object sender, System.EventArgs e)
{
SqlConnection thisConnection=new SqlConnection(@"Data Source=(local);Integrated Security=SSPI;"+"Initial Catalog=student");
thisConnection.Open();
SqlCommand cmd=new SqlCommand("select Count(*) from 档案 where 学号='"+this.textBox1.Text+"' and 姓名='"+this.textBox2.Text+"'",thisConnection);
}
请高手指教