protected void ChkConsultar_CheckedChanged(object sender, EventArgs e) { CheckBox ChkConsultar = (CheckBox)sender; GridDataItem item = (GridDataItem)ChkConsultar.Parent.Parent; int Permiso = 0; if (ChkConsultar.Checked == true) { Permiso = 1; } else { Permiso = 0; } ClUsuario.Actuliza_Rol_Usuario(Convert.ToInt32(TxtUsuarioId.Text), Convert.ToInt32(item.GetDataKeyValue("FormaId")), Permiso, 1); }