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 

IWGrid and dynamic comboxes

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (IntraWeb)
View previous topic :: View next topic  
Author Message
Michael Fullerton
Guest





PostPosted: Wed May 09, 2007 3:10 am    Post subject: IWGrid and dynamic comboxes Reply with quote



IW 9.0.15

I have an app with a IWGrid. I've filled the first two columns with
comboxes. When the combobox in the second column is clicked I want it
to add the item selected in the combobox in the first column. So the
comboxes in the second column have the following assigned to
OnAsyncClick:

procedure TIWForm1.UpdateCol2Click(ASender: TObject;
EventParams: TStringList);
var
LComboBox,cb1: TIWComboBox;
begin
LComboBox := ASender as TIWComboBox;
cb1 := IWGrid1.Cell[LComboBox.Tag, 0].Control as TIWComboBox;
LComboBox.Items.Add(cb1.Text);
end;

I've verified this code is executed but the item is not appearing in
the second combobox. Anyone see why?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (IntraWeb) 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.