>>>I have a stored procedure which returns a distinct list of categories. I call it via a strored proc and bind the DS to a combo.
>>>
>>>Problem is, once the user selects an item in the combo, there's no way to choose nothing. There's no empty row. Initially I have set the combo's SelectedIndex to -1, but that doesn't allow the user to unselect the selected item in the combo.
>>>
>>>Anyone?
>>
>>Add one additional entry to your combobox with -- Select --
>
>Ya,. but where? In the data table? I have tried to add items, but you can't when the combo is bound.
This is ASP.NET syntax
http://www.4guysfromrolla.com/webtech/073101-1.shtml Do you want for WinForms?
http://www.dotnetcurry.com/ShowArticle.aspx?ID=42&AspxAutoDetectCookieSupport=1
If it's not broken, fix it until it is.
My Blog