Following code works in debug mode, but in release mode there are only blank rows shown, with only an icon per file. The file list is correct, since in another mainmenu item the files show correctly ??
private void FillFileLinks()
{
dataGridView1.AutoGenerateColumns = false;
string[] files = GetFileList();
var filenamesList = new BindingList<StringValue>();
foreach (string file in files)
{
if (String.IsNullOrEmpty( file.Trim() ))
continue;
filenamesList.Add(new StringValue( file ));
}
dataGridView1.DataSource = filenamesList;// myDatasource;
}
// Example file list: E:\Temp\File01.txt;C:\Desktop\File2.txt;