当我按下Delete按钮时,我希望cynosure这个词是集中的,放在DataGridView的顶部,这不是现在的情况。现在,它显示在底部。 { foreach (DataGridViewRow r in dataGridView1..Focus();
dataGridView1.CurrentCell = dataGridView1.Rows[index
我有Gridview绑定sqldatasource,我有可以看到gridview的登录帐户,我为这些登录帐户设置了角色,有些登录帐户不能看到所有的gridview列,那么我如何才能使某些列成为只读列? using (SqlConnection Con = Connection.GetConnection()) SqlCommand com = new SqlCommand("CheackLoginInRole", Con);
com.CommandType = Comma