Incompatible type when sorting group

Hi,

I'm trying to do a simple grouping on the TMSFNCGrid. Following the manual, I essentially set these two code lines:

    Tmsfncgrid1.Group(1);
    Tmsfncgrid1.SortGrouped(1,sdAscending);

I want to group by Column 1, and then sort it (or vice versa). But I get the following error:

    Error: Incompatible type for arg no. 2: got "TSortDirection", expected "TTMSFNCGridSortDirection"

Using latest stable Lazarus.

uses
  LCLTMSFNCGridData;

Tmsfncgrid1.SortGrouped(1, LCLTMSFNCGridData.sdAscending);

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.