private void btnAddNew_Click(object sender, EventArgs e) { FrmEditCustomer dlg = new FrmEditCustomer(); if (DialogResult.OK == dlg.ShowDialog()) { BindData(); } }
private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) { string ID = this.winGridViewPager1.gridView1.GetFocusedRowCellDisplayText("ID"); if (!string.IsNullOrEmpty(ID)) { FrmEditCustomer dlg = new FrmEditCustomer(); dlg.ID = ID; //dlg.IDList = IDList; if (DialogResult.OK == dlg.ShowDialog()) { BindData(); } } }