It works fine in Preview Mode, but when the report is viewed in Web Viewer, the inserted item does not show up.
The following code appears in the LoadForm Event
Code: Select all
ContractStatusTable.Connect();
lstStatus.Items.Insert(0, "All");
lstStatus.SelectedIndex = 0;
My theory is that this event fires just before the table is populated. The reason I suggest this is that if I try to insert the item at any point other than 0, I get an index out-of-bands error.
If I remove the databinding and just add items to the collection, the above code works.