Example #1
0
        public void FillGrid()
        {
            UsersHandler usersHandler = new UsersHandler();

            usersHandler.DoFillGridAction();
            DataTable gridData = usersHandler.dt;

            MessageCollection.copyFrom(usersHandler.MessageCollection);

            if (MessageCollection.isErrorOccured)
            {
                MessageCollection.PublishLog();
                lbl_err.Text    = MessageCollection.Messages[MessageCollection.Messages.Count - 1].ErrorMessage;
                lbl_err.Visible = true;
            }

            gridView.DataSource = gridData;
            gridView.DataBind();
        }