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.
Unfortunately, activation email could not send to your email. Please try again.

Month and Year in DateTime Picker Drop Down

Thread ID:

Created:

Updated:

Platform:

Replies:

20976 Oct 29,2004 04:29 AM Oct 30,2004 01:33 AM Windows Forms 4
loading
Tags: GridControl
Thiyagu
Asked On October 29, 2004 04:29 AM

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 09:54 AM

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.

Thiyagu
Replied On October 29, 2004 08:59 PM

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

Thiyagu
Replied On October 29, 2004 09:00 PM

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 01:33 AM

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.

CONFIRMATION

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.

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.

;