Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# Set Picklist Value

Status
Not open for further replies.

xarfox

IS-IT--Management
Feb 6, 2002
6
US
ok this is driving me insane

i need to set the picklist value in C# using the sdk

i have the text value that i want it to be, but you cannot set the text value directly since picklist.name is read-only

therefore, i must lookup the integer value using that specific string value

for example i give it "PA" and it returns 40, then i set picklist.Value = 40, and in the application it displays as "PA"

anyone know how to do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top