I have a InfoDataSet<MediaFileInfo> object I'm adding items to and all works great. Problem I'm having is when I return he InfoDataSet object an bind it to a MediaView control, the dataset is empty. I've debugged through the code and can see the Items being successfully added and that they are in the InfoDataSet<MediaFileInfo> object. But the actual dataset and tables are null or empty. How do I keep a strongly typed InfoDataSet<MediaFileInfo> object and return the values in the dataset?
Here is a small snippet of code:
MediaFileInfo mfi = MediaFileInfoProvider.GetMediaFileInfo(libraryId, currentFolder.TrimStart('\\'));
if (onlyGetNotImported && mfi == null)
{
MediaFileInfo mfiNew = new MediaFileInfo(string.Concat(rootFolder, currentFolder), libraryId, "");
mfiDataSet.Items.Add(mfiNew);
}