private void InsertLabelOption() { try { string result = string.Empty; GridView view = (GridView)this.grdLabelOption.Views[0]; var lstLabel = UiUtility.ConvertToList <T_ARRIVAL_DTL_SUB>(this.dtbLabelOptionList); using (ArrivalBLL arrBll = new ArrivalBLL()) { result = arrBll.InsertLabel(this.ARRIVAL_NO, this.LINE_NO, lstLabel, this._USER_ID); } if (result == "OK") { this.DialogResult = DialogResult.OK; } } catch (Exception ex) { XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); } }