Supress Expansion Icon in Master-Detail FNC Data Grid

I have a FNC Data Grid where some rows (depending on the row values) shall be expandable and some shall not be.

I can prevent the expansion via OnCellBeforeNodeExpand - but how can I prevent the drawing of the icon that indicates the row to be expandable in the first place?

Hi,

You can turn it back into a normal cell.

procedure TForm130.TMSFNCDataGrid1GetCellClass(Sender: TObject; AColumn,
  ARow: Integer; var ACellClass: TTMSFNCDataGridCellClass);
begin
  if ACellClass = TTMSFNCDataGridNodeCell then
  begin
    if (ARow = 3) then
      ACellClass := TTMSFNCDataGridCell;
  end;
end;
1 Like

That is working like a charm. Thanks a lot and happy wekend.

1 Like