combobox issue

Posted on 2011-10-24
Last Modified: 2012-06-21
I am trying to fill the radcombobox but I cant get that second line work...

for (int x = DateTime.Today.Year; x <= (DateTime.Today.Year + 9); x++)
                ddExpirationYear.Items.Insert(new RadComboBoxItem(x.ToString(), x.ToString()));
Question by:1jaws
    LVL 2

    Accepted Solution

    The insert method wants a parameter index, which was not supplied, you should use Add method instead.

    for (int x = DateTime.Today.Year; x <= (DateTime.Today.Year + 9); x++)
                    ddExpirationYear.Items.Add(new RadComboBoxItem(x.ToString(), x.ToString()));

    Author Closing Comment


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now