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 

StringGrid features

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL)
View previous topic :: View next topic  
Author Message
Varnas
Guest





PostPosted: Mon Mar 27, 2006 4:03 pm    Post subject: StringGrid features Reply with quote



Hi, I'm using stringgrids in my application to view data (programming
with bcb6). Ammount of data sometimes is quite big and I'm interested
in two things:

1) Is there a way to select a desired row (i couldn't find enywhere how
to do that)

2) Is there a way to free memory that is allocated by stringgrid
(stringgrid on a form is placed at design time staticly)?
situation: I start my application it uses 5MB of ram, when i show the
contents of a file, lets say there are 20000 rows, my application uses
26MB of ram, and after that i show the contents of another file (in the
same stringgrid) with 500 rows and my application still uses 26MB of
ram. Thats not good for me.

Could someone help with this?
Back to top
Guest






PostPosted: Thu Mar 30, 2006 7:03 pm    Post subject: Re: StringGrid features Reply with quote



for(int i=0;i<stringgrid1->ColCount;i++)
{
stringgrid1->Cols[i]->Clear();
}
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL) 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.