// Get Function that returns a DATASET from TABMEDIA // Captures the DATASET in variable _mediaDataSet public MediaDataSet.TabMediaDataTable GetMediaAll() { _mediaDataSet.TabMedia.Clear(); // clears data table of data _mediaDataSet.EnforceConstraints = false; try { _mediaTabTableAdapter.FillByAllTabs(_mediaDataSet.TabMedia); return(_mediaDataSet.TabMedia); } catch (Exception ex) { throw ex; } }