//protected void GvPermissions_RowDataBound(object sender, GridViewRowEventArgs e) //{ // if (e.Row.RowType == DataControlRowType.DataRow) // { // Label lblScreenID1 = (Label)e.Row.FindControl("lblScreenID"); // Label lblScreenName1 = (Label)e.Row.FindControl("lblScreenName"); // CheckBox ChkAdd1 = (CheckBox)e.Row.FindControl("ChkAdd"); // } //} protected void ddlservice_SelectedIndexChanged(object sender, EventArgs e) { objBAL = new ClsBAL(); if (ddlservice.SelectedValue == "ALL") { ObjDataset = objBAL.GetScreens(); if (ObjDataset != null) { if (ObjDataset.Tables.Count > 0) { if (ObjDataset.Tables[0].Rows.Count > 0) { GvPermissions.DataSource = ObjDataset.Tables[0]; GvPermissions.DataBind(); MVUsers.ActiveViewIndex = 2; } } } } else { ObjDataset = objBAL.getscreenbyservice(ddlservice.SelectedValue); if (ObjDataset != null) { if (ObjDataset.Tables.Count > 0) { if (ObjDataset.Tables[0].Rows.Count > 0) { GvPermissions.DataSource = ObjDataset.Tables[0]; GvPermissions.DataBind(); MVUsers.ActiveViewIndex = 2; } } } } }