Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
runtime build iwjqDbGrid columns
#1
hi
i tried buid columns in a grid at run time.

begin
  IWjQDBGrid2.ClearGridData;
  IWjQDBGrid2.Columns.Clear;
  with IWjQDBGrid2.Columns do
  begin
    Add;
    TjQGridDBColumn(IWjQDBGrid2.Columns[0]).FieldName := 'Client_Code';
    TjQGridDBColumn(IWjQDBGrid2.Columns[0]).Title    := 'Code';
    TjQGridDBColumn(IWjQDBGrid2.Columns[0]).Visible  := True;
  end;

  with IWjQDBGrid2.Columns do
  begin
    Add;
    TjQGridDBColumn(IWjQDBGrid2.Columns[1]).FieldName := 'Client_Name';
    TjQGridDBColumn(IWjQDBGrid2.Columns[1]).Title    := 'Name';
    TjQGridDBColumn(IWjQDBGrid2.Columns[1]).Visible  := True;
  end;
  FDQuery1.Open;

  IWjQDBGrid2.RefreshData;
  IWjQDBGrid2.ShowColumn('Column0');
  IWjQDBGrid2.ShowColumn('Column1');


i see there are 2 columns in the grid.
but idont see the data...

any idea?
Reply
#2
maybe ATOZED team can answer?

i never straggle so much with delphi components.
80% of the time is to straggle with render, view, bugs and so on.
instead of dealing with my project.

i think atozed team should stop develop any thing new until 95% of the bugs solved.
Reply
#3
Hi, You put a DataSource on your page?, link your DataSource to your FDquery. In IWJQDBGrid->DataSource, link to your DataSource.
Reply
#4
(07-16-2020, 11:50 AM)Jose Nilton Pace Wrote: Hi, You put a DataSource on your page?, link your DataSource to your FDquery. In IWJQDBGrid->DataSource, link to your DataSource.
ya. that the way - from old VCL and from 1993 Smile
Reply
#5
Please update to 15.2.7. All your test cases are working correctly now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)