private void GetLabelOptionList(string arrNo, int lineNo) { try { using (ArrivalBLL arrivalBLL = new ArrivalBLL()) { List <T_ARRIVAL_DTL_SUB> lstLabel = arrivalBLL.GetLabelList(arrNo, lineNo); //this.grdUNIT.DataSource = lstUnit; if (lstLabel == null) { lstLabel = new List <T_ARRIVAL_DTL_SUB>(); } //DataTable table = ConvertToDataTable(lstUnit); //this.grdUNIT.DataSource = table; this.dtbLabelOptionList = UiUtility.ConvertToDataTable(lstLabel); if (this.dtbLabelOptionList != null) { this.grdLabelOption.DataSource = this.dtbLabelOptionList; } } } catch (Exception ex) { XtraMessageBox.Show(ex.Message); } }