Atozed Forums

Full Version: runtime build iwjqDbGrid columns
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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.
Hi, You put a DataSource on your page?, link your DataSource to your FDquery. In IWJQDBGrid->DataSource, link to your DataSource.
(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
Please update to 15.2.7. All your test cases are working correctly now.