private void FormatoGrilla() { dgIngresos.AutoGenerateColumns = false; var xvmtipoplanilla = ".."; var xvmtiporubro = ".."; if ((cbPlanilla.SelectedValue != null)) { xvmtipoplanilla = cbPlanilla.SelectedValue.ToString(); } if ((cboTipoRubro.SelectedValue != null)) { xvmtiporubro = cboTipoRubro.SelectedValue.ToString(); } var BL = new tb_plla_tab0100BL(); var BE = new tb_plla_tab0100(); BE.ctab = xvmtipoplanilla; BE.cele = xvmtiporubro; tabla = BL.GetAllConfiguracionRubroTareo(VariablesPublicas.EmpresaID, BE).Tables[0]; dgIngresos.DataSource = tabla; }