// Internal methods /// <summary> /// Fetch data from DB and populate Items DataGrid /// </summary> private void PopulateItemsDataGrid() { try { int iRet = 0; ds = db.ExecuteSQLStatement(sql.SelectAllItems(), ref iRet); ItemDG.ItemsSource = new DataView(ds.Tables[0]); } catch (Exception ex) { throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." + MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message); } }