Insert items to a Combo box in InfoPath 2007

A

Anders J

Hi

I would like to add extra items to a dropdown box from codebehind (c#). I
have trid serveral solutions but i can not get it to work. I always get a
Schema validation error. I have tried something like this.

// FILL DROPDOWN
XPathNavigator myRoot = MainDataSource.CreateNavigator();
XPathNavigator the_ddl_node = null;

the_ddl = myRoot.SelectSingleNode("/my:mineFelter/my:section_s/my:the_ddl",
NamespaceManager);
the_ddl.InsertAfter("<my:the_ddl>A new item</the_ddl>");

But it does not work?
 
Top