Solved

DataGridViewCell Caledar - Possible for one cell but not the whole column

Posted on 2008-10-02
2
157 Views
Last Modified: 2013-11-26
I have a datagrid view that needs to display a Caledar Drop Drop (Date Time Picker is OK) withing a single cell, but NOT for the entire column.  Is this possible?  If so, can someone suggest how.  

I got the calendar column working from this MSDN article.  
http://msdn.microsoft.com/en-us/library/7tas5c80.aspx
but I need to prevent the calendar from displaying in every cell within the column

Thanks

Tim
0
Comment
Question by:timconway
2 Comments
 
LVL 48

Accepted Solution

by:
jpaulino earned 125 total points
ID: 22629763
You cannot do that if you implement a CalendarColumn. It will be present on every row.
If you really need that you can place a datetimepicker (by code) hover the cell and then use the selected value to fill the cell.
Check this example that I have helped http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_23746465.html. It uses a combobox but you can get the idea.
0
 

Author Closing Comment

by:timconway
ID: 31502641
Thanks for clearing that up for me.  I had a feeling I'd have to use the old VB6 'smoke and mirrors' approach, which actually works just fine.  I just wasn't sure if the DataGridView could get that detailed on the cell level or not.  And since I'm not quite ready to shell out for a Third Party grid, looks like this will be the way to go.  

Thanks for your help

Tim
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

896 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

17 Experts available now in Live!

Get 1:1 Help Now