This project is read-only.

Need to either disable or hide a button

Mar 16, 2013 at 4:52 AM
I am using the following code to create a button in a cell:

SourceGrid.Cells.Button btn = new SourceGrid.Cells.Button("Font");

I have not found any way to either disable or hide the button. I have programmed to button click even to ignore clicks when the button should be disabled, but I would like the user to see that he/she shouldn't be clicking the button.

There seem to be several types of "Button" in SourceGrid so I want to make clear which one I am using.

Or should I be using a different class to implement a button within a cell?

Thanks in advance,
Michael Bate
Mar 20, 2013 at 5:11 PM
I am not found any way do that.But you can create your custom Click Controller,and remove custom Click Controller when the button shouldn't be click.
Mar 21, 2013 at 9:57 AM
You should be able to get to the actual Button instance, and from there you could call button.Enabled = false to disable that.