private void DataRequestGridLoad() { DBLayer.DataRequest requestObj = new DBLayer.DataRequest(); DataTable dt = new DataTable(); dt = requestObj.GetAllDataRequest(); DataRequestGrid.DataSource = dt; DataRequestGrid.DataBind(); }
protected void grantButton_Click(object sender, EventArgs e) { foreach (GridViewRow row in DataRequestGrid.Rows) { CheckBox groupCheckBox = (CheckBox)row.FindControl("selectGroup"); if (groupCheckBox.Checked) { AccessControl accessObj = new AccessControl(); accessObj.SetUserAccess(row.Cells[3].Text.ToString(), Convert.ToInt16(row.Cells[5].Text), Convert.ToInt16(row.Cells[8].Text)); DBLayer.DataRequest dataRequestObj = new DBLayer.DataRequest(); dataRequestObj.ReleaseDataRequestRow(Convert.ToInt16(row.Cells[9].Text)); DataRequestGridLoad(); } } }