Hello All,
i am filling country list to Combobox.
This list comes from Database.
now I want to Insert "--Select--" at the top of combox.
i tried cmbcountry.items.insert(0,"--Select--");
but it fired exception that items collections can not be modified after datasource property is set.
Can anyone help me to sort out this problem
Thank in advance
Azamat
Loading
saravanan gajendranPosted Oct 11, 2006, 3:06 AM
saravanan gajendranPosted Oct 11, 2006, 3:05 AM
mohitchawlaPosted Oct 9, 2006, 9:15 AM
this works for sure.
"(select convert(nvarchar, '(Select)') as \"field1\") union all (select field1 from table1)"
jc mandapatPosted Oct 8, 2006, 5:44 AM
AzamatPosted Oct 5, 2006, 12:00 AM
But as i wrote in my post it thorws exception Items collection can not be modified after data source property is set
And also i cant find any object like ListItem, so i didnt use it at all.
thanks again
milind khirePosted Oct 3, 2006, 9:18 AM