Question

enter image description here

I have shown the navigator on a TcxGrid. I'd like to make the entire navigator disabled without hiding it. How can I do that?

Was it helpful?

Solution

Take a look at NavigatorButtons of the view. You can disable/enable every one e.g.

view.NavigatorButtons.Append.Enabled := false;

or disable/anable them all in a loop:

var
 i:Integer;
begin
 for I := 0 to view.NavigatorButtons.ButtonCount - 1 do
   view.NavigatorButtons.Buttons[i].Enabled := false;
end;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top