runtime build iwjqDbGrid columns

<< Click to Display Table of Contents >>

Navigation:  Forum >

runtime build iwjqDbGrid columns

Forum link

 


 

07-15-2020, 03:21 PM:

 

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?

 


 

07-16-2020, 11:39 AM:

 

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.

 


 

07-16-2020, 11:50 AM:

 

Hi, You put a DataSource on your page?, link your DataSource to your FDquery. In IWJQDBGrid->DataSource, link to your DataSource.

 


 

07-16-2020, 12:04 PM:

 

(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

 


 

07-22-2020, 02:09 AM:

 

Please update to 15.2.7. All your test cases are working correctly now.