hsh_Ar
hsh_Ar

Reputation: 93

Custom Column or Row for Grid - delphi 10.1 berlin

I am looking for a solution to create a custom column or row for a fmx.grid or fmx.stringgrid in Dlphi 10.1, like numberbox column. there are some explanations using CreateCellControl funtion, but not working in 10.1

Upvotes: 0

Views: 675

Answers (1)

Tom Brunberg
Tom Brunberg

Reputation: 21033

It seems CreateCellControl doesn't exist anymore in Delphi 10.1 Berlin (it existed at least in XE7, which I checked, and probably in other versions too).

I suggest you use TCurrencyColumn which limits entries to numeric only and aligns entries to the right of the column. Alternatively you can check and prevent wrong entries in the OnSetValue event.

Upvotes: 1

Related Questions