Add items to combo box c# and infopath template

  • Thread starter Micronext de Mexico, S.A. de C.V.
  • Start date
M

Micronext de Mexico, S.A. de C.V.

Hi:

I´m trying to develop a form template on Infopath 2007, but i need to add
several items to a combo box by custom code on visual studio 2005 with c#. I
only can set one value with this code:

string xpath = "/my:myFields/my:field2";
XPathNavigator field2 =
MainDataSource.CreateNavigator().SelectSingleNode(xpath, NamespaceManager);
field2.SetValue("HOLA");

Where field2 is a combo box.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top