Hi,
Please change next procedure in NxGrid.pas:
function TNextGrid.DrawCellData(ACol, ARow: Integer; CellState: TCellState): Boolean;
var
DisplayText: WideString;
CellInfo: TCellInfo;
begin
inherited DrawCellData(ACol, ARow, CellState);
CellInfo := GetCellInfo(ACol, ARow);
with CellInfo, Columns[ACol] do
begin
DisplayText := AsString;
case ColumnType of
ctAutoInc: Display.AsInteger := ARow;
ctBoolean: Display.AsBoolean := AsBoolean;
ctDate: Display.AsDateTime := AsDateTime;
ctFloat: Display.AsFloat := AsFloat;
ctInteger: Display.AsInteger := AsInteger;
ctString: Display.AsString := AsString;
ctGraphic: Display.ObjectReference := CellInfo.ObjectReference;
ctGuid: Display.AsString := AsString;
ctVirtual: Display.AsString := AsString;
end;
end;
ApplyCellFormating(ACol, ARow, DisplayText, CellState);
Result := True;
end;
and in NxDisplays.pas
procedure TGraphicColumnDisplay.Paint;
begin
with Column as TNxGraphicColumn do DrawPicture(TGraphic(Self.ObjectReference), Margin, BorderWidth, Stretch);
end;
Problem cause a ObjectReference property added for Column
Please sorry for this problem.