Ejemplo n.º 1
0
 private void Search()
 {
     ManagePagination.SearchSource = ManagePagination.DataSource
                                     .Where(
         h => h.Address1.ToLower().Contains(Searchtxt.ToLower()) ||
         h.Name.ToLower().Contains(Searchtxt))
                                     .ToArray();
     ManagePagination.PageCount = (int)Math.Ceiling((int)ManagePagination.SearchSource.Length / (decimal)ManagePagination.ItemPerPage);
     ManagePagination.Paginate(0);
 }
Ejemplo n.º 2
0
 private void Search()
 {
     SearchSource = DataSource.Where(h => h.Address1.ToLower().Contains(Searchtxt.ToLower())).ToArray();
     PageCount    = (int)Math.Ceiling((int)SearchSource.Length / (decimal)ItemPerPage);
     Paginate(0);
 }