GridView 根据多个字段值删除

GridView 根据多个字段值删除_第1张图片

  protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
       int CID = int.Parse(GridView1.DataKeys[e.RowIndex].Values[0].ToString());
        int PID = int.Parse(GridView1.DataKeys[e.RowIndex].Values[1].ToString());
      //删除操作逻辑代码      

    }

你可能感兴趣的:(GridView)