예제 #1
0
        private void CargarGrid()
        {
            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";
            DSDevuelve = WSLic.DevuelveOs(mdlGenerales.Conexion,
                                          dtpMes.Value.Month.ToString(), dtpMes.Value.Year.ToString());
            DTMain = DSDevuelve.Tables[0];
            DVMain = DTMain.DefaultView;
            GGCOrdenes.DataSource = null;
            GGCOrdenes.TableDescriptor.Reset();
            GGCOrdenes.TableDescriptor.AllowNew = false;
            GGCOrdenes.Refresh();
            GGCOrdenes.DataSource = DVMain;
            FormatColumnas();
            AplicarFilterBar();
        }