Hello:
I am sure this question comes up a lot. I need to disable the controls
on my Windows forms so that when the BindingSource is empty some the
controls bound to it will be disabled.
This will make it clear to the user that they have to create a new
item first before they start working.
This needs to be an easy process because there are many, many forms.
We can't just go through every control and disable it since some
controls need to always be enabled. My hope was to perform the
operation with some sort of binding.
We have considered other options, such as automatically inserting when
the binding source is empty, but that comes with its own set of
problems. We think disabling is probably the most straighforward way
to eliminate the problem.
Any insight would be helpful.
Thanks,
Travis
I am sure this question comes up a lot. I need to disable the controls
on my Windows forms so that when the BindingSource is empty some the
controls bound to it will be disabled.
This will make it clear to the user that they have to create a new
item first before they start working.
This needs to be an easy process because there are many, many forms.
We can't just go through every control and disable it since some
controls need to always be enabled. My hope was to perform the
operation with some sort of binding.
We have considered other options, such as automatically inserting when
the binding source is empty, but that comes with its own set of
problems. We think disabling is probably the most straighforward way
to eliminate the problem.
Any insight would be helpful.
Thanks,
Travis
Comment