G
Guest
How come on a button event I can run the following code:
vehicleRequired.DataSource = vehicleList; // vehicleList is just an array
value
vehicleRequired.SelectedItem = null;
but running the same code on the window load or constructor event, does not
set the selected Item to null, but defaults the first item in the array?
vehicleRequired.DataSource = vehicleList; // vehicleList is just an array
value
vehicleRequired.SelectedItem = null;
but running the same code on the window load or constructor event, does not
set the selected Item to null, but defaults the first item in the array?