or
private void BuscaSolicitanteGrid() { try { if (rdTxtExp.Value != null) { var bdInstContext = new BD_INSTEntities(); var empleados = from emp in bdInstContext.Empleados where emp.exp_emp == rdTxtExp.Value && emp.ind_edo_emp=="A" select emp; rgSolic.DataSource = empleados; rgSolic.Rebind(); rgSolic.Visible = true; rdTxtNom.Text = ""; rdTxtApat.Text = ""; rdTxtAmat.Text = ""; rdTxtExp.Value = null; } if (rdTxtNom.Text != "") { var bdInstContextApat = new BD_INSTEntities(); var empleadoNombre = from emp in bdInstContextApat.Empleados where emp.nombre_emp == rdTxtNom.Text && emp.ind_edo_emp == "A" select emp; rgSolic.DataSource = empleadoNombre; rgSolic.Rebind(); rgSolic.Visible = true; rdTxtNom.Text = ""; rdTxtApat.Text = ""; rdTxtAmat.Text = ""; rdTxtExp.Value = null; } if (rdTxtApat.Text != "") { var bdInstContextApat = new BD_INSTEntities(); var empleadoApat = from emp in bdInstContextApat.Empleados where emp.paterno_emp == rdTxtApat.Text && emp.ind_edo_emp == "A" select emp; rgSolic.DataSource = empleadoApat; rgSolic.Rebind(); rgSolic.Visible = true; rdTxtNom.Text = ""; rdTxtApat.Text = ""; rdTxtAmat.Text = ""; rdTxtExp.Value = null; } if (rdTxtAmat.Text != "") { var bdInstContextAmat = new BD_INSTEntities(); var empleadosAmat = from emp in bdInstContextAmat.Empleados where emp.materno_emp == rdTxtAmat.Text && emp.ind_edo_emp == "A" select emp; rgSolic.DataSource = empleadosAmat; rgSolic.Rebind(); rgSolic.Visible = true; rdTxtNom.Text = ""; rdTxtApat.Text = ""; rdTxtAmat.Text = ""; rdTxtExp.Value = null; } if (rdTxtNom.Text != "" && rdTxtApat.Text!="") { var bdInstContextNom = new BD_INSTEntities(); var empleadoNom = from emp in bdInstContextNom.Empleados where emp.nombre_emp == rdTxtNom.Text && emp.paterno_emp == rdTxtApat.Text && emp.ind_edo_emp == "A" select emp; rgSolic.DataSource = empleadoNom; rgSolic.Rebind(); rgSolic.Visible = true; rdTxtNom.Text = ""; rdTxtApat.Text = ""; rdTxtAmat.Text = ""; rdTxtExp.Value = null; } if (rdTxtNom.Text != "" && rdTxtAmat.Text != "") { var bdInstContextNom = new BD_INSTEntities(); var empleadoNom = from emp in bdInstContextNom.Empleados where emp.nombre_emp == rdTxtNom.Text && emp.materno_emp == rdTxtAmat.Text && emp.ind_edo_emp == "A" select emp; rgSolic.DataSource = empleadoNom; rgSolic.Rebind(); rgSolic.Visible = true; rdTxtNom.Text = ""; rdTxtApat.Text = ""; rdTxtAmat.Text = ""; rdTxtExp.Value = null; } if (rdTxtApat.Text!="" && rdTxtAmat.Text!="") { var bdInstContextNom = new BD_INSTEntities(); var empleadoApellidos = from emp in bdInstContextNom.Empleados where emp.paterno_emp == rdTxtApat.Text && emp.materno_emp == rdTxtAmat.Text && emp.ind_edo_emp == "A" select emp; rgSolic.DataSource = empleadoApellidos; rgSolic.Rebind(); rgSolic.Visible = true; rdTxtNom.Text = ""; rdTxtApat.Text = ""; rdTxtAmat.Text = ""; rdTxtExp.Value = null; } if (rdTxtNom.Text != "" && rdTxtApat.Text != "" && rdTxtAmat.Text != "") { var bdInstContextNom = new BD_INSTEntities(); var empleadoApellidos = from emp in bdInstContextNom.Empleados where emp.nombre_emp == rdTxtNom.Text && emp.paterno_emp == rdTxtApat.Text && emp.materno_emp == rdTxtAmat.Text && emp.ind_edo_emp == "A" select emp; rgSolic.DataSource = empleadoApellidos; rgSolic.Rebind(); rgSolic.Visible = true; rdTxtNom.Text = ""; rdTxtApat.Text = ""; rdTxtAmat.Text = ""; rdTxtExp.Value = null; } } catch (Exception ex) { Alerta(ex.Message); } }
Hi,
Is there any possibility to customize CommandItemTable and add one more button in addition to AddNewRecord and Refresh button.
I would like to add one Export button in the CommandItem row or in between Add and Refresh button. So please le me know the availability of this option.
-Thanks
