Ejemplo n.º 1
0
        protected void gridMain_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            int recSkip = gridMain.MasterTableView.CurrentPageIndex * gridMain.MasterTableView.PageSize;
            int recTake = gridMain.MasterTableView.PageSize;

            try {
                OrdersController cont = new OrdersController();
                gridMain.VirtualItemCount = cont.CountOrders(OrderTypeID);
                gridMain.DataSource       = cont.GetOrders(OrderTypeID, recSkip, recTake);
            }
            catch (Exception) { }
        }