/// <summary> /// BatchComboFill /// </summary> /// <param name="decProductId"></param> /// <param name="inRow"></param> /// <param name="inCol"></param> public void BatchComboFill(decimal decProductId, int inRow, int inCol) { try { List<DataTable> list = new List<DataTable>(); BatchBll BllBatch = new BatchBll(); list = BllBatch.BatchNamesCorrespondingToProduct(decProductId); DataGridViewComboBoxCell dgvcmbBatchCell = (DataGridViewComboBoxCell)dgvProduct.Rows[inRow].Cells[inCol]; dgvcmbBatchCell.DataSource = list[0]; dgvcmbBatchCell.ValueMember = "batchId"; dgvcmbBatchCell.DisplayMember = "batchNo"; } catch (Exception ex) { MessageBox.Show("DN30: " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }