Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     using (CustomersProvider provider = new CustomersProvider()) {
         CustomersGridView.DataSource = provider.GetList();
         CustomersGridView.DataBind();
         if (!CustomersGridView.IsCallback)
         {
             Customer focusedRow = CustomersGridView.GetRow(CustomersGridView.FocusedRowIndex) as Customer;
             if (focusedRow != null)
             {
                 CustomerDetails.LoadContent(focusedRow.Id);
             }
         }
     }
 }