A
AndyW
Hi,
I have a listbox which is curerntly getting its source from a dataset:
TListBox.DataSource = dsTemp;
What I would like to do is add a default choice to the start of the
listbox which isn't got from the dataset. I have tried:
TListBox.Items.Add(new ListItem(" All", "Default");
TListBox.DataSource = dsTemp;
But selecting the source afterwards removes it. Is there anyway of
manually adding an entry to the start whilst still getting the rest of
the data from the datasource?
Thanks,
Andy
I have a listbox which is curerntly getting its source from a dataset:
TListBox.DataSource = dsTemp;
What I would like to do is add a default choice to the start of the
listbox which isn't got from the dataset. I have tried:
TListBox.Items.Add(new ListItem(" All", "Default");
TListBox.DataSource = dsTemp;
But selecting the source afterwards removes it. Is there anyway of
manually adding an entry to the start whilst still getting the rest of
the data from the datasource?
Thanks,
Andy