C# / Infopath drop down list

K

kalisin

Does InfoPath store idems in a drop down list in an array?

Using C# Do I reference the Xth element of the drop down list as
ddlDropDown[X] ?


What full path do I need to specify to access this member?


Thanks in advance.


Kalimukwa
 
S

Scott Roberts [MSFT]

The answer to this sort of depends on how you've created the list. Since
InfoPath's object model is completely data centric and there is no OM for
the view, if you have static items, you won't be able to access them from
code. If you've bound the dropdown to data in the main or a secondary data
source, you can access the items by access those XML nodes through code
using the InfoPath object model in conjuction with System.Xml (for managed
code).

I hope this at least gives you a starting point.

- Scott
 
Top