﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Date column in datagridview</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 19 Sep 2026 08:59:01 GMT</lastBuildDate><ttl>20</ttl><item><title>Date column in datagridview</title><link>http://forum.strataframe.net/FindPost26632.aspx</link><description>So many good reasons to either not use datagridviews for data entry or to use a 3rd party grid that has more capability BUT&lt;br&gt;
&lt;br&gt;
Suppose I need to use a standard MS datagridview with a BBS.&lt;br&gt;
&lt;br&gt;
I can set the format to d for a short date but in BO mapper I use either generic for nulls or #1/1/1800# for replace/value.&lt;br&gt;
&lt;br&gt;
Either way, as soon as you enter a date field in grid you get 1/1/1800.  Then if you enter an invalid date it throws an error.&lt;br&gt;
&lt;br&gt;
Any tricks for using the datagridview?  Ideally I'll like to have the datetimepicker in that column, but I'm a bit of an idiot as to how to build the grid manually if I do that and it seems pretty labor intensive since you can't just pick that as a control type for the column.  &lt;br&gt;
&lt;br&gt;
Suggestions?  Doesn't have to be fancy, just user friendly for entering dates &lt;br&gt;
&lt;br&gt;
( next time around I'll be using an infragistics grid where I think there are more options )&lt;br&gt;
&lt;br&gt;
TIA</description><pubDate>Thu, 25 Mar 2010 22:18:45 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Date column in datagridview</title><link>http://forum.strataframe.net/FindPost26635.aspx</link><description>You are welcome Charles.&lt;br&gt;
&lt;br&gt;
Well basically what I do with Google is I enter the following search expression:&lt;br&gt;
&lt;br&gt;
[quote]"vb.net how to use datetimepicker  in datagridview"[/quote]&lt;br&gt;
&lt;br&gt;
Also some times I go to the Google Microsoft page [url=http://www.google.com/microsoft]http://www.google.com/microsoft[/url] and to do my search.</description><pubDate>Thu, 25 Mar 2010 22:18:45 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Date column in datagridview</title><link>http://forum.strataframe.net/FindPost26634.aspx</link><description>Edhy Thank you!  You're a better googler than I am :)&lt;br&gt;
&lt;br&gt;
I googled around quite a bit and didn't hit that second link which is definitely what I'm looking for.&lt;br&gt;
&lt;br&gt;</description><pubDate>Thu, 25 Mar 2010 21:50:12 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Date column in datagridview</title><link>http://forum.strataframe.net/FindPost26633.aspx</link><description>Hi Charles,&lt;br&gt;
&lt;br&gt;
I love Google... The first link is the search I did, and the second one is one sample on how to add a DateTimePicker to the DataGridView, of course you would want to use the SF class for the DateTimePicker, I don't know if it will work, but it is a start.&lt;br&gt;
&lt;br&gt;
[url=http://www.google.com/search?q=vb.net+how+to+use+datetimepicker++in+datagridview&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a]http://www.google.com/search?q=vb.net+how+to+use+datetimepicker++in+datagridview&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a[/url]&lt;br&gt;
&lt;br&gt;
[url=http://www.vbdotnetforums.com/winforms-grids/17524-add-datetimepicker-datagridview.html]http://www.vbdotnetforums.com/winforms-grids/17524-add-datetimepicker-datagridview.html[/url]</description><pubDate>Thu, 25 Mar 2010 21:16:17 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>