int RowNumber=this.DataGridView.CurrentCell.RowIndex;
this.myset.Table[0].Rows[RowNumber].Delete();
Sqlconnection sqlcon=new Sqlconnection ("连接数据库字符串");
SqlDataAdapter sqlada=new SqlDataAdapter("","sqlcon");
SqlCommandBuIlder sqlbuiler=new SqlCommandBuIlder(sqlada);
sqlada.Update(myset);
你的page_load里应该写上
if(!isPostBack)
{
Bind();
}
Bind()方法为gridview的绑定方法。