The progressbars are showing as expected, please provide more information on this issue, at which point does the error occur?. Please don't set up columns in the TopLeftChanged event. Please set this up in the form constructor. Additionally, the progressbar color cannot be changed, we'll add this on our feature request list.
The progresbars are showing as expected if I load the data step by step traversing the dataset, But does not work when the data is loaded thru "TMSFNCGridDatabaseAdapter".
Progressbar support is currently not exposed via the grid database adapter. But you should be able to add a ProgressBar column after the dataset is loaded. You can do this after setting DataSet.Active := True
Sorry for resurrecting an old thread but it doesn't seems to be implemented as of yet.
If I try to assign the values afterwards through a simple button click:
var i: integer; pVal: Integer; cp: TTMSFNCGridCellProperty; begin TMSFNCGrid1.BeginUpdate; for i := TMSFNCGrid1.FixedRows to TMSFNCGrid1.RowCount - 1 do begin pVal := 0; TryStrToInt(TMSFNCGrid1.Cells[9, i], pVal);
cp := TTMSFNCGridCellProperty(IntObjects[9, i]); if Assigned(cp) then begin (cp.Control as TTMSFNCGridCellProgressBar).Value := pVal; end; end; TMSFNCGrid1.EndUpdate; end;
How can I get the IntObjects from an external pov?
Actice Record won't help to load the whole grid. At that point, I would be better off loading all values up front in a list and assigning them all at once. So maybe I can load values from the dataset AfterOpen, I will try.