现在我是
protected void bindtogridview()
{
SqlConnection con = DB.createConn();
SqlDataAdapter sda = new SqlDataAdapter();
sda.SelectCommand = new SqlCommand("select * from login order by id desc", con);
DataSet ds = new DataSet();
sda.Fill(ds, "emp");
// this.GridView1.DataKeyNames = "id";这里出错 这里怎么取出谢谢帮忙
this.GridView1.DataSource = ds.Tables["emp"];
this.GridView1.DataBind();
}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
//然后这里接受主件怎么实现啊
}
相应这个事件 想实现 删除功能