How can I disable toolstripitems in BindingNavigator?
BindingNavigator
takes control of these buttons to enable / disable them as needed; those. you cannot go prev / next, if there is no more data, you cannot add / remove without the main source letting you ( IBindingList.AllowNew
/ .AllowRemove
.
What buttons do you want to customize? For example, you can disable add / remove using data source like BindingList<T>
, and install AllowNew=false
/ AllowRemove=false
.
Alternatively, just write your own buttons entirely (forget BindingNavigator
) - it's not a lot of work, especially if you start with BindingSource
in a form (since it has everything you need MoveFirst()
, etc ..
source to share