× General Purpose Components and Libraries, discussions, problems and suggestions

Question RxDBGrid prolem

  • Nicola
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
2 years 5 months ago #11465 by Nicola
RxDBGrid prolem was created by Nicola
In RxDBGrid in design time the dgTabs option is set to false and can only be changed in the code. Looking at the RxDBGrid source, the first lines of the Create constructor are as follows:

constructor TRxDBGrid.Create(AOwner: TComponent);
begin
  FFooterOptions:=TRxDBGridFooterOptions.Create(Self);
  inherited Create(AOwner);
{$IFDEF RXDBGRID_OPTIONS_WO_CANCEL_ON_EXIT}
  Options := Options - [dgCancelOnExit];
{$ENDIF}
  FSaveOnDataSetScrolled:=Datalink.OnDataSetScrolled;
  Datalink.OnDataSetScrolled:=@OnDataSetScrolled;

  FToolsList:=TFPList.Create;
  FColumnDefValues:=TRxDBGridColumnDefValues.Create(Self);
  FSearchOptions:=TRxDBGridSearchOptions.Create(Self);

  FSortColumns:=TRxDbGridColumnsSortList.Create;
  FGroupItems:=TColumnGroupItems.Create(Self);

  F_MenuBMP := CreateResBitmap('rx_menu_grid');

  Options := Options - [dgTabs];          <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

//  TDrawGrid(Self).Options:=TDrawGrid(Self).Options + [goColSpanning];

  OptionsRx := OptionsRx + [rdgAllowColumnsForm, rdgAllowDialogFind, rdgAllowQuickFilter];


Is there any reason I do not understand why the option is set to False?

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
2 years 5 months ago #11467 by Sternas Stefanos
Replied by Sternas Stefanos on topic RxDBGrid prolem
Thanks Sir
we will test this tomorrow and I will report here

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
2 years 5 months ago #11468 by Sternas Stefanos
Replied by Sternas Stefanos on topic RxDBGrid prolem
It's a programming Option Sir
to set "dgTabs" in TRxDBGrid.Create not as option of TRxDBGrid

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Nicola
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
2 years 5 months ago #11482 by Nicola
Replied by Nicola on topic RxDBGrid prolem
Ok,
thanks for your quick reply

Please Log in or Create an account to join the conversation.