I use binding in a win-forms application (.Net 2.0), and I try to find the best way to maintain the selected items in my data bound controls. I read that the best way to access the selection is by using CurrencyManager
's (or bindingSource's) "Current
" and "Position
" properties. The problem is that I can't find a way to select nothing (Position
's value will always be set to the index of one of the items in the list), and there is also no way to know if there are many items selected.
Is there a way to solve those problems using CurrencyManager
or should I start using the properties that provided by the controls (e.g. DataGridView's SelectedRows property)?
Thanks!