0

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?

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
user763539
  • 3,509
  • 6
  • 44
  • 103

1 Answers1

5

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;
bummi
  • 27,123
  • 14
  • 62
  • 101