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 

TMS TAdvStringGrid Help

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Third Party Tools)
View previous topic :: View next topic  
Author Message
Chitralekha Rentala
Guest





PostPosted: Mon Mar 14, 2005 11:13 pm    Post subject: TMS TAdvStringGrid Help Reply with quote



Hi all,

I am trying to add a combo box to one cell in a TAdvStringGrid. I do
not want to set the whole grid in Edit mode with the goEditing
property. If possible I would like to have an attached string next to
the combo box in the grid. I have the following code so far with
goEditing set to true. But I was wondering if anyone has suggestions on
how to do this more efficiently and without having to set the entire
grid in edit mode.

.......

AdvStringGrid1->AddComboString("String1");
AdvStringGrid1->AddComboString("String2");

..........

//---------------------------------------------------------------------------
void __fastcall TForm1::AdvStringGrid1GetEditorType(TObject *Sender,
int aCol, int aRow, TEditorType &aEditor)
{
//set the combo box for cell[2][2]
if((aRow == 2) && (aCol == 2))
aEditor = edComboList;
}

Thanks,
Chitra

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Third Party Tools) 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.