private void Load_MRList() { try { DataTable MRList = objMRDL.GetDataView_Store(CurrentUser.UserID, MR.Status.Issued, MR.Origin.ToStore, Convert.ToInt64(cmbDepartment.SelectedValue)); bindMRList.DataSource = MRList; gvMRList.AutoGenerateColumns = false; gvMRList.DataSource = bindMRList; bindMRList.ResetBindings(true); bindItemList.DataSource = null; gvMRList.AutoGenerateColumns = false; gvItemList.DataSource = bindItemList; bindMRList.ResetBindings(true); } catch (Exception ex) { MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }