/// <summary> /// AutoCompletion of Product,productCode /// </summary> /// <param name="isProductName"></param> /// <param name="editControl"></param> public void FillProducts(bool isProductName, DataGridViewTextBoxEditingControl editControl) { try { ProductSP spProduct = new ProductSP(); DataTable dtblProducts = new DataTable(); ProductNames = spProduct.ProudctNameViewAllForAutoComplete(); ProductCodes = spProduct.ProudctCodesViewAllForAutoComplete(); } catch (Exception ex) { MessageBox.Show("PO7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }