Welcome, Guest
Username: Password: Remember me
General Purpose Components and Libraries, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

RxDBGrid prolem 6 years 8 months ago #11465

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
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.

RxDBGrid prolem 6 years 8 months ago #11467

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
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.

RxDBGrid prolem 6 years 8 months ago #11468

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
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.

RxDBGrid prolem 6 years 8 months ago #11482

  • Nicola
  • Nicola's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
Ok,
thanks for your quick reply

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

  • Page:
  • 1