We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set selected value of PdfLoadedComboBoxField

Thread ID:





107898 Mar 21,2013 06:43 PM UTC Mar 2,2018 08:28 PM UTC ASP.NET Web Forms (Classic) 2
Tags: PDF
Jeff Gilbert
Asked On March 21, 2013 06:43 PM UTC

I am using the Pdf component in Asp.net to programatically fill out the newly released I-9 form.
The Syncfusion Documentation says that the selectedIndex field of the PdfLoadedComboBoxField is an int, and that the selectedValue is a string.  However when I examine them in the debugger i find that the selectedIndex is int[1] and the selectedValue is a string[0].  so when I try this:
    myPdfLoadedComboBoxField.SelectedValue = 3;
I get the error:
    Cannot implicitly convert type 'int' to 'int[]'
I have also tried the following without success:
    fld.SelectedIndex[0] =7;
    fld.SelectedIndex = new int[1];
    fld.SelectedValue = "CA"
    fld.SelectedValue = new string[1]{"CA"}

Jeff Gilbert
Replied On March 21, 2013 08:18 PM UTC

Figured it out.  This worked:
    (Field as PdfLoadedComboBoxField).SelectedValue = new string[] {Value};

Praveenkumar H [Syncfusion]
Replied On April 1, 2013 07:09 AM UTC

Hi Jeff,

Thank you for using Syncfusion products,

We are happy to hear that you have found the solution  to set selected value of PdfLoadedComboBoxField.

To know more information about the Pdf forms please visit the below link.

Please let us know if you have any concern,

With regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon