Jump to content
Sign in to follow this  
azrael_11

FMX Tstringgrid

Recommended Posts

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

 

var
	vStringColumn: TStringColumn;

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

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  

×