Solved

VB.Net: DateTimePicker in DataGridView

Posted on 2012-04-03
6
2,117 Views
Last Modified: 2012-04-03
Hi Experts,

I am using VB.Net and using datagridview.

I need datatimepicker on a specific column. How can i do that?

Thanks in advance
0
Comment
Question by:baabaa_nl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 38

Accepted Solution

by:
PaulHews earned 250 total points
ID: 37802837
The sample on this page shows how to host a DateTimePicker in a DataGridView.

How to: Host Controls in Windows Forms DataGridView Cells
http://msdn.microsoft.com/library/7tas5c80(en-us,vs.80).aspx
0
 

Author Comment

by:baabaa_nl
ID: 37802859
Hi PaulHews,

The code is really huge. Are there any simpler alternatives to achieve the goal?

Thanks in advance.
0
 
LVL 17

Assisted Solution

by:nepaluz
nepaluz earned 250 total points
ID: 37802880
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 38

Expert Comment

by:PaulHews
ID: 37802895
I don't believe there are, aside from third party grids.  There is a project on CodeProject which has compiled similar code into a library:

Generic DataGridView V2.0
http://www.codeproject.com/Articles/14674/Generic-DataGridView-V2-0

It seems well received by some, but I've never used it.
0
 

Author Comment

by:baabaa_nl
ID: 37802897
Hi nepaluz,

Its the same page and the same code that PaulHews sent. But only the URL is different.
0
 
LVL 17

Expert Comment

by:nepaluz
ID: 37802910
had not seen that he had posted before I did.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 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