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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Month and Year in DateTime Picker Drop Down

Thread ID:





20976 Oct 29,2004 08:29 AM UTC Oct 30,2004 05:33 AM UTC WinForms 4
Tags: GridControl
Asked On October 29, 2004 08:29 AM UTC

Hi Clay, Is it possible for me to Display Month and Year alone in the DatePicker Drop Down Cell in GridDataBound Grid??.. As of now, I was able to Display Month and Year in the Cell(Using style.format = "MM yyyy") but I need to have Month and year in the Drop down as well which is now displaying days and dates for that month.. Please help... Thanks, Thiagu.

Administrator [Syncfusion]
Replied On October 29, 2004 01:54 PM UTC

The MonthCalendar celltype is based on the Windows Forms MonthCalendar control. I do not know of a way to get that control to not show the days. You can format the display to not show days. Here is a forum link where there is a sample that formats the text to show time. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=14222. Maybe that will serve your needs.

Replied On October 30, 2004 12:59 AM UTC

But that is what I need. What I need is to show a Drop Down that Holds only Month and Year. Thanks, Thiagu.

Replied On October 30, 2004 01:00 AM UTC

I mistaken. That is not the thing which I need. What I need is to show a Drop down that Holds only month and Year.. Thanks, Thiagu. >But that is what I need. What I need is to show a Drop Down that Holds only Month and Year. > >Thanks, >Thiagu. > >

Administrator [Syncfusion]
Replied On October 30, 2004 05:33 AM UTC

Can you make either a Windows Forms MonthCalendar control or a Windows Forms DateTimePicker dropped directly on a form display things the way you want them to be? (I do not know how to, but if you can show me how it can be done, I can then try to show you how you could do it in a grid cell.) But if you cannot make either of these controls work the way you want, then I do not know how to do what you want in a grid cell without first somehow getting a standalone control that does it.


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

Live Chat Icon For mobile
Live Chat Icon