Пример #1
0
        public void CargaGrid(String NumeroRuc, String RazonSocial, String NRP, String Capacidad)
        {
            DataSet   DSDevuelve = new DataSet();
            DataTable DTMain     = new DataTable();
            DataView  DVMain     = new DataView();

            WSLicitaciones.WSLicitaciones WSLic = new WSLicitaciones.WSLicitaciones();
            WSLic.Url = mdlGenerales.DireccionWS + "FazServices/WSLicitaciones.asmx";

            txtNumeroRuc.Text   = NumeroRuc;
            txtRazonSocial.Text = RazonSocial;
            txtNRP.Text         = NRP;
            txtCapacidad.Text   = Capacidad;

            DSDevuelve            = WSLic.DevuelveContactosEmpresa(mdlGenerales.Conexion, txtNumeroRuc.Text.ToString());
            DTMain                = DSDevuelve.Tables[0];
            DVMain                = DTMain.DefaultView;
            GGCPersLiq.DataSource = null;
            GGCPersLiq.TableDescriptor.Reset();
            GGCPersLiq.TableDescriptor.AllowNew = false;
            GGCPersLiq.Refresh();
            GGCPersLiq.DataSource = DVMain;
            FormatColumnas();
            AplicarFilterBar();
        }