Jump to content
Sign in to follow this  

FMX Tstringgrid

Recommended Posts

Try to add columns to Tstringgrid  at run time with the code below


	vStringColumn: TStringColumn;

for vi := 0 to 15 do
      csCart.main.Grid.InsertObject(vi, TStringColumn.Create(vStringColumn));

But i get abstract error ...


What i am doing wrong?

I use Delphi 10.3.2

Edited by azrael_11

Share this post

Link to post

Ok i found it the right one is


 csCart.main.Grid.InsertObject(vi, TStringColumn.Create(csCart.main.Grid));


Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this