문제

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?

도움이 되었습니까?

해결책

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;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top