Solved

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

Posted on 2008-10-02
2
156 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
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 …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 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

13 Experts available now in Live!

Get 1:1 Help Now