Esempio n. 1
0
 // fired when user paginates
 private void CustomerByCountryGrid_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     try
     {
         CustomerByCountryGrid.PageIndex = e.NewPageIndex;
         CustomerByCountryGrid.DataBind();
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 2
0
 // initial data binding to the grid
 private void BindDataToGridView()
 {
     try
     {
         CustomerByCountryGrid.DataSource = _customerRepository.GetCustomers();
         CustomerByCountryGrid.DataBind();
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 3
0
 // bind data to the grid view by country selection
 private void BindDataToGridViewByCountry()
 {
     try
     {
         CustomerByCountryGrid.DataSource = _customerRepository.GetCustomerByCountry(CountriesDDL.SelectedValue);
         CustomerByCountryGrid.DataBind();
     }
     catch (Exception)
     {
         throw;
     }
 }