Introduction
Management
Technology
ISO9001
About us
Copyright
colourful technology...
Dyetech

August 17th 2005

Selecting nothing in a ComboBox

Here's a simple one - try selecting nothing in a databound ComboBox Just set SelectedIndex = -1. But it doesn't work sometimes! It seems to be an issue in .NET 1.1 - and the simple workaround is to repeat the line. Found that after days of frustration and browsing. Didn't think such workarounds would be acceptable! But it solves the issue nicely. I've just had to remember to comment these in the code in case someone thinks they are accidents...

 

Comments? - Contact us here


Home
IT and Management consultancy
Copyright Dyetech 2005-7
All rights reserved