Can someone please explain lines 3174-3177 in FMX.Grid.Style to me? More to the point, why they're before lines 3180-3181. (Delphi 10.1 Berlin, Update 1)

Can someone please explain lines 3174-3177 in FMX.Grid.Style to me? More to the point, why they're before lines 3180-3181. (Delphi 10.1 Berlin, Update 1)

Comments

  1. Turns out the real issue is in TStyledGrid.MouseDown. It was causing the cell to not become selected occasionally when tapping on a cell, but just in Android (works fine in Windows). Where the method reads:

    FUpdating := FUpdating + [TGridPart.EditorShowing];

    I've changed it to:

    if TGridOption.AlwaysShowEditor in Model.Options then
    FUpdating := FUpdating + [TGridPart.EditorShowing];

    Any comments as to why this might be unwise would be appreciated. Note that the grid in this case will not actually support editing

    ReplyDelete

Post a Comment