Library Vcl NextSuite 6 NextGrid6 Reference Classes TNxColumn6 OnGetText

OnGetText

Called when a cell inside the column require text (before painting, showing hint etc.). The event provides an opportunity for adjusting the current text.

pas
property OnGetText: TNxGetTextEvent read FOnGetText write FOnGetText;

Most columns include own OnGetValue event that provides opportunity for setting value in a column-native type.

Example

pas
procedure TForm1.NxTextColumn61GetText(Sender: INxColumn; ACol, ARow: Integer;
  var Text: WideString);
begin
  if (Text = 'Ann') and (ARow = 3) then Text := 'Anna';
end;

Sign in