private void cmdsave_Click(object sender, EventArgs e) { if (checkgrid == false) { return; } try { ProductService service = new ProductService(); bool savedit = service.editNumberCheckProduct(this.pid,this.dcode, this.pcode,Convert.ToInt32(txtNum.Text.Trim())); if (savedit) { //MessageBox.Show("������º���� !!! ", "����"); Console.WriteLine("Edit Sucsess"); cmdsearch_Click(sender, e); } CurrentPage = cpag; if (CurrentPage < 1) { CurrentPage = 1; RecordToDisplay = 0; } else { RecordToDisplay = (CurrentPage - 1) * PageSize; } ShowRecord(CurrentPage); } catch (Exception ex) { } }