Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
application restarter  - for an exe that hangs 9 30
C# Gridview 1 47
Convert Ctime to date time in textfile? 7 31
Change to file doesn't show up 16 52
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…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

860 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