コード例 #1
0
        private void LlenarGridAlert()
        {
            try
            {
                if (Session["DtAlert"] == null)
                {
                    GetAlert();
                }

                AlertGrid.DataSource = Session["DtAlert"];
                AlertGrid.DataBind();
            }
            catch (Exception ex)
            {
                AlertGrid.JSProperties.Add("cpError", ex.Message);
            }
        }
コード例 #2
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            TheGrid = AlertGrid;

            GridPagerTop.InitializeGridPager(SR.GridPagerAlertSingleItemFound, SR.GridPagerAlertMultipleItemsFound, AlertGrid,
                                             () => ResultCount, ImageServerConstants.GridViewPagerPosition.Top);
            Pager = GridPagerTop;
            GridPagerTop.Reset();

            // Set up the grid
            if (Height != Unit.Empty)
            {
                ContainerTable.Height = _height;
            }

            AlertGrid.DataSource = AlertDataSourceObject;
            AlertGrid.DataBind();
        }