• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

combobox issue

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()));
0
1jaws
Asked:
1jaws
1 Solution
 
owaisyahyaCommented:
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()));
0
 
1jawsAuthor Commented:
thanks!!
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now