Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
Setting Columns to Readonly Unless Specified Otherwise?
posted

I have just noticed a large issue on my current project...

I have many different UltraGrids and on some of them there are a certain few columns that are editable while the rest are not. I had been doing this by setting CellClickAction to Edit on those particular columns.

The Grids Override.AllowUpdate is set to True and Override.CellClickAction is RowSelect.

This all worked perfectly fine until I realized that if you're in an editable Cell and press Tab you will be allowed to edit any Cell you want...

My first thought was that I'm going to have to explicitly set the CellActivation for every non-editable column to Disabled. But this method is going to require more changes to my code than I had originally wanted.

Is there some easier way to do this?

For example if I could set Override.AllowUpdate to False and then somehow explicitly state which Columns can be edited regardless of this setting that would work. I don't want to have to Disable Tab altogether, if that's even possible, as people like using it. Ideas?

Parents Reply Children
No Data