If you want to continue to use the DataView as your data source, then no,
there is not going to be a more elegant solution. You can either databind
the combo or manually populate the combo, not both. By using databinding to
populate the combo, you are ensuring that the combo cannot get it's data any
other way. Since you are using a DataView as the data source, the data
*must* be in the underlying table. So your options are fairly limited:
1) Manually populate the combo each time a user selects a different
language, which would allow you to add a blank row in code. You could
iterate through the rows in the DataView after adding the blank row.
2) Continue to bind the combo to the DataView, and add a blank row to the
underlying DataTable for each language.
If you just want to ensure that no item is selected when the combo is
populated, you can just set the SelectedIndex property to -1. However, I am
guessing you need the blank row to allow the user to "clear" the selection,
so setting the SelectedIndex probably won't help.
How are you using the blank row? If it is just to ensure that nothing is
selected when
"Johann Blake" <jo*********@yahoo.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
The problem with that solution is that when the user selects a
different language (with a separate combobox), the list for the
combobox that is suppose to include a blank line will not include the
blank line. This is because this combobox is bound to a table whose
RowFilter is set to the language the user chooses. This would mean
having to add a blank row for each language selected. Any other ideas?
Johann