protected void CarregaGridEventoDetalhe(DevExpress.Web.ASPxGridView.ASPxGridView objGrid, string strUsuario, int intComunidade, string strFiltro)
 {
     try
     {
         EventoRedeDataContext objDc = new EventoRedeDataContext();
         objGrid.DataSource = objDc.EVT_ConsultaPainelOperador("").ToList();
         objGrid.DataBind();
     }
     catch { }
 }
Exemple #2
0
 private void Bind(DevExpress.XtraCharts.Web.WebChartControl chart, DevExpress.Web.ASPxGridView.ASPxGridView grid, string str1, string str2, string str3, string sql1, string sql2)
 {
     using (Adapter ad = new Adapter(Conn))
     {
         DataTable data = ad.Query(sql1, null);
         chart.Series.Clear();
         chart.SeriesDataMember = str1;
         chart.SeriesSorting    = DevExpress.XtraCharts.SortingMode.Ascending;
         chart.SeriesTemplate.ArgumentDataMember           = str2;
         chart.SeriesTemplate.ArgumentScaleType            = DevExpress.XtraCharts.ScaleType.Qualitative;
         chart.SeriesTemplate.SeriesPointsSorting          = DevExpress.XtraCharts.SortingMode.Ascending;
         chart.SeriesTemplate.ValueDataMembersSerializable = str3;
         chart.SeriesTemplate.LabelsVisibility             = DevExpress.Utils.DefaultBoolean.True;
         chart.SeriesTemplate.ValueScaleType = ScaleType.Numerical;
         chart.PaletteName = "Metro";
         chart.DataSource  = data;
         chart.DataBind();
         DataTable data2 = ad.Query(sql2, null);
         grid.DataSource = data2;
         grid.DataBind();
     }
 }
Exemple #3
0
 private void RefreshGrid(DevExpress.Web.ASPxGridView.ASPxGridView gv)
 {
     gv.DataSource = Business.MediosPublicitarios.ReadAllGrupo("");
     gv.DataBind();
 }