Example #1
0
 public void BindCustomerData()
 {
     try
     {
         ObjBCustomer.GetCustomers(ObjECustomer);
         if (ObjECustomer.dsCustomer != null)
         {
             cmbCustomer.Properties.DataSource    = ObjECustomer.dsCustomer.Tables[0];
             cmbCustomer.Properties.DisplayMember = "CustomerFullName";
             cmbCustomer.Properties.ValueMember   = "CustomerID";
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Example #2
0
 /// <summary>
 /// to bind customer details to gridview
 /// </summary>
 public void BindCustomerData()
 {
     try
     {
         ObjBCustomer.GetCustomers(ObjECustomer);
         if (ObjECustomer.dsCustomer != null)
         {
             gcCustomer.DataSource = ObjECustomer.dsCustomer.Tables[0];
             gvCustomer.BestFitColumns();
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }