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; } }
/// <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; } }