Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / January 2006

Tip: Looking for answers? Try searching our database.

inserting value-display name pair in Drop down box programmatically

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gaurav Bhardwaj - 11 Jan 2006 12:29 GMT
Hi,

Is there any way to insert value-display name pair in Drop down box
programmatically at runtime?

Thanks,
Gaurav
Greg Collins [InfoPath MVP] - 11 Jan 2006 23:18 GMT
Are either of these helpful?

Populate a Drop-Down List Box via Code
http://www.infopathdev.com/howto/tutorials/default.aspx?i=987250af134b4ced85cbdd
c7db724202


Populate a Drop-Down List Box via a Secondary Data Source
http://www.infopathdev.com/howto/tutorials/default.aspx?i=7f693c75c5c94604b01bdf
d3a1edaedc


Signature

Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com

Hi,

Is there any way to insert value-display name pair in Drop down box
programmatically at runtime?

Thanks,
Gaurav
Gaurav Bhardwaj - 12 Jan 2006 11:27 GMT
Hi ,

Many thanks for the reply.

The code in the article works great but my problem is slightly different. I
need to insert the values in drop down without any manual intervention.

I have created a custom control which can be placed on any InfoPath form.
The control can access the InfoPath’s document model. I am able to read and
write values in a text box through that control but not in a drop down box.
To summarize, I want to insert data into drop-down box from code behind dll
(in C#) without making any manual changes in the template files. Is there
any work around for my problem?

Thanks,

Gaurav

Are either of these helpful?

Populate a Drop-Down List Box via Code
http://www.infopathdev.com/howto/tutorials/default.aspx?i=987250af134b4ced85cbdd
c7db724202


Populate a Drop-Down List Box via a Secondary Data Source
http://www.infopathdev.com/howto/tutorials/default.aspx?i=7f693c75c5c94604b01bdf
d3a1edaedc


Signature

Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com

Hi,

Is there any way to insert value-display name pair in Drop down box
programmatically at runtime?

Thanks,
Gaurav
Greg Collins [InfoPath MVP] - 12 Jan 2006 17:08 GMT
I am not aware of a way to do that. Sorry.

Signature

Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com

Hi ,

Many thanks for the reply.

The code in the article works great but my problem is slightly different. I
need to insert the values in drop down without any manual intervention.

I have created a custom control which can be placed on any InfoPath form.
The control can access the InfoPath’s document model. I am able to read and
write values in a text box through that control but not in a drop down box.
To summarize, I want to insert data into drop-down box from code behind dll
(in C#) without making any manual changes in the template files. Is there
any work around for my problem?

Thanks,

Gaurav

Are either of these helpful?

Populate a Drop-Down List Box via Code
http://www.infopathdev.com/howto/tutorials/default.aspx?i=987250af134b4ced85cbdd
c7db724202


Populate a Drop-Down List Box via a Secondary Data Source
http://www.infopathdev.com/howto/tutorials/default.aspx?i=7f693c75c5c94604b01bdf
d3a1edaedc


Signature

Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com

"Gaurav Bhardwaj" <gaurav0981@hotmail.com> wrote in message
news:uRpq0qqFGHA.3120@TK2MSFTNGP10.phx.gbl...
Hi,

Is there any way to insert value-display name pair in Drop down box
programmatically at runtime?

Thanks,
Gaurav

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.