public frmCustomer() { InitializeComponent(); cusFun = new frmCustomerFunction(); empFun = new frmEmployeeFunction(); dataGridView1.MultiSelect = false; Control[] tempRequire = { txtEn1, txtEn2, txtEmail, txtphone }; requirement = tempRequire; txtphone.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals; txtPhone2.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals; loadPlaceHolder(); }
//BindingSource binding = new BindingSource(); public frmCustomerDetail() { InitializeComponent(); cusFun = new frmCustomerFunction(); empFun = new frmEmployeeFunction(); btnClr.Visible = false; itemPanel1.Items.Remove(itemContainer1); itemPanel1.Items.Remove(itemContainer4); //customersDataGridView.DataSource = binding; //Helper.BindGridView("SELECT * FROM Customers;", binding, customersDataGridView); //Helper.AutoFitColumns(customersDataGridView); }