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

DropDownCalendarControl years dropdown

Thread ID:





68365 Sep 19,2007 01:31 PM UTC Sep 24,2007 01:30 PM UTC ASP.NET Web Forms (Classic) 1
Tags: Tools
Asked On September 19, 2007 01:31 PM UTC

I am using DropDownCalendarControl and I se current Value to be DateTime.Now. In years dropdown I see years from 2002-2011. The number of years listed in years dropdown can be changed? I need to use it to select birth date and it's possible that the user want to select 1940 and for that, he need to pres Prev arrow too many times.

There is a solution on that?

Thank you.

Suresh Sekarean [Syncfusion]
Replied On September 24, 2007 01:30 PM UTC

Hi Iryna,

Currently DropDownCalendar Control do not support to specify the number of combo items for the year section.

Using reflection, We can modify the number of Combo Items to be shown in the DropDownCalendar control. Please refer the below code snippet.


DropDownCalendarControl DropDown = new DropDownCalendarControl();
//Access the variable 'm_iCountYearInCombo' which specify the number of combo items for the year section
FieldInfo count_Years = DropDown.GetType().GetField("m_iCountYearInCombo", BindingFlags.Instance | BindingFlags.NonPublic);
//Set new value to this variable
count_Years.SetValue(DropDown, 70);

Please refer the below sample,


Sorry for the inconvenience if any caused.

Thanks for using Syncfusion products.



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

This page will automatically be redirected to the 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