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?
Asked
Active
Viewed 1,121 times
0

David Heffernan
- 601,492
- 42
- 1,072
- 1,490

user763539
- 3,509
- 6
- 44
- 103
-
Which component is this? Is it `TcxGrid` with default properties? – David Heffernan Nov 04 '13 at 09:01
-
cxGrid does not have built in dbnavigator by default. You enable it (navigator: True/False). False by default. – user763539 Nov 04 '13 at 09:10
-
1So, if you don't want it enabled, why did you, er, enable it? I think the question is not clear. Do you actually want to control the `Enabled` property of the individual buttons on the navigator? – David Heffernan Nov 04 '13 at 09:14
-
for learning's sake .. :) – user763539 Nov 04 '13 at 09:16
-
Please can you edit the question to make it clear what you are asking. – David Heffernan Nov 04 '13 at 09:30
-
don't know really how to make the question more clear... Enable/disable the built in dbnavigator. Not buttons or anything ...As a whole. – user763539 Nov 04 '13 at 09:38
-
I rolled the question back. Answers go in answers, not in questions. – David Heffernan Nov 04 '13 at 09:53
1 Answers
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