//------------------ Methods ------------------------------- public void Clear() { txtDate.Text = ""; txtDepartment.Text = ""; txtMRNo.Text = ""; txtRemarks.Text = ""; txtReqestBy.Text = ""; txtType.Text = ""; bindItemList.DataSource = null; objMR = null; try { if (rbInitial.Checked) { bindMRList.DataSource = objMRDL.GetMR_ToBatch(CurrentUser.UserID, MR.Status.Initial, MR.Origin.ToBatch); } else if (rbApproved.Checked) { bindMRList.DataSource = objMRDL.GetMR_ToBatch(CurrentUser.UserID, MR.Status.Approved, MR.Origin.ToBatch); } } catch (Exception ex) { MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }