 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Chitralekha Rentala Guest
|
Posted: Mon Mar 14, 2005 11:13 pm Post subject: TMS TAdvStringGrid Help |
|
|
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 |
|
 |
|
|
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
|
|