BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

fields in table and dbGrid

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
philip
Guest





PostPosted: Wed Dec 07, 2005 3:03 pm    Post subject: fields in table and dbGrid Reply with quote



Hello,

I want to upgrade at runtime the fieldlist for the tablecomponent ( because
users can add or delete fields at runtime to his table)
and show all the fields of the table in a grid ( dbisamtable)
I tried a lot of code in the before open form the tablecomponent
......
tblloc.FieldDefs.Clear;
tblloc.FieldDefs.update;
tblloc.FieldList.Update;
smdbgrid4.Columns.RebuildColumns;
.....
but the new field(s) are not added to my fieldlist automatiquely
when I go to the component ad design time I can add the field. But I must de
done at runtime.
some idea ?

Thanks

Philip Dierickx
[email]philip.dierickx (AT) imseuro (DOT) be[/email]
www.imseuro.be


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.