I have a WinForms application with a DataGridView control and a column of DataGridViewButtonCell cells. When I click on one of these buttons, it starts a background task, and I would like to disable the buttons until this task is completed.
I can disable the DataGridView control, but it does not provide visual information that the buttons are disabled. I want the user to see that the buttons are disabled, and note that the task completed when the buttons are turned on again.
Bonus points for a method that allows me to disable the buttons separately, so I can leave one of the buttons on during the execution of the task. (Please note that I cannot give out bonus points.)
user-interface c # winforms
Don kirkby
source share