<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8166852.post99281778795953399..comments</id><updated>2011-03-21T23:42:52.874-06:00</updated><category term='religion'/><category term='xbox'/><category term='code'/><category term='bandwidth'/><category term='financial software'/><category term='wheel repair'/><category term='driving'/><category term='movies'/><category term='console repair'/><category term='politics'/><title type='text'>Comments on Yakko Warner: Fixing the DataGridView's CalendarColumn sample</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.yakkowarner.com/feeds/99281778795953399/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default'/><link rel='alternate' type='text/html' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html'/><author><name>Yakko Warner</name><uri>https://profiles.google.com/102705077104052556673</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-n1ELqIITtXM/AAAAAAAAAAI/AAAAAAAACRo/qTx2DZFcbYg/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8166852.post-8281824838868676257</id><published>2011-03-17T04:34:57.884-06:00</published><updated>2011-03-17T04:34:57.884-06:00</updated><title type='text'>I have a row with two CalendarCell: First cell not...</title><content type='html'>I have a row with two CalendarCell: First cell not nullable  but second one is nullable.&lt;br /&gt;If I click in in nullable cell, I let it unchecked then I click on the first cell. As result, I loose the selected value in combobox (Cell.Value should be selected).&lt;br /&gt;&lt;br /&gt;When I have my second cell checked , I don&amp;#39;t have this problem.&lt;br /&gt;&lt;br /&gt;I cannot understand what&amp;#39;s happening.  help will be appreciated.&lt;br /&gt;&lt;br /&gt;Thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/8281824838868676257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/8281824838868676257'/><link rel='alternate' type='text/html' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html?showComment=1300358097884#c8281824838868676257' title=''/><author><name>zouardani</name><uri>http://www.blogger.com/profile/05539902126886647381</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html' ref='tag:blogger.com,1999:blog-8166852.post-99281778795953399' source='http://www.blogger.com/feeds/8166852/posts/default/99281778795953399' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-806498760'/></entry><entry><id>tag:blogger.com,1999:blog-8166852.post-734588867190022878</id><published>2010-01-01T13:46:21.893-07:00</published><updated>2010-01-01T13:46:21.893-07:00</updated><title type='text'>Check the nullable column example I linked to in m...</title><content type='html'>Check the nullable column example I linked to in my previous comment (it&amp;#39;s something I worked on later).  It lets you enable the checkbox on the date control to blank out dates and insert DBNull into the underlying data source.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/734588867190022878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/734588867190022878'/><link rel='alternate' type='text/html' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html?showComment=1262378781893#c734588867190022878' title=''/><author><name>Yakko Warner</name><uri>http://www.blogger.com/profile/12276550157896918123</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/yakkowarner/Ry6C4utWcPI/AAAAAAAAAHk/80O9-nO5fV4/s144/BugBashGP.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html' ref='tag:blogger.com,1999:blog-8166852.post-99281778795953399' source='http://www.blogger.com/feeds/8166852/posts/default/99281778795953399' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1703601702'/></entry><entry><id>tag:blogger.com,1999:blog-8166852.post-4548956034888138034</id><published>2010-01-01T04:57:35.849-07:00</published><updated>2010-01-01T04:57:35.849-07:00</updated><title type='text'>Thanks for spotting these fixes, good work.

For t...</title><content type='html'>Thanks for spotting these fixes, good work.&lt;br /&gt;&lt;br /&gt;For the Null value, what if i don&amp;#39;t want to insert today&amp;#39;s date if it&amp;#39;s null?  What if i&amp;#39;d just like to leave the cell blank and DB value still null?&lt;br /&gt;&lt;br /&gt;Thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/4548956034888138034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/4548956034888138034'/><link rel='alternate' type='text/html' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html?showComment=1262347055849#c4548956034888138034' title=''/><author><name>Sybink</name><uri>http://www.blogger.com/profile/15242137426501266952</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html' ref='tag:blogger.com,1999:blog-8166852.post-99281778795953399' source='http://www.blogger.com/feeds/8166852/posts/default/99281778795953399' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-858470641'/></entry><entry><id>tag:blogger.com,1999:blog-8166852.post-8902303459695123910</id><published>2009-10-16T14:40:20.582-06:00</published><updated>2009-10-16T14:40:20.582-06:00</updated><title type='text'>Thanks for the comment!  I added similar code when...</title><content type='html'>Thanks for the comment!  I added similar code when I expanded this into a &lt;a href="http://www.yakkowarner.com/2009/09/nullable-datagridview-calendarcolumn.html" rel="nofollow"&gt;checkbox-enabled, nullable CalendarColumn&lt;/a&gt;.  Good to know I wasn&amp;#39;t just being paranoid.  ;)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/8902303459695123910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/8902303459695123910'/><link rel='alternate' type='text/html' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html?showComment=1255725620582#c8902303459695123910' title=''/><author><name>Yakko Warner</name><uri>http://www.blogger.com/profile/12276550157896918123</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/yakkowarner/Ry6C4utWcPI/AAAAAAAAAHk/80O9-nO5fV4/s144/BugBashGP.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html' ref='tag:blogger.com,1999:blog-8166852.post-99281778795953399' source='http://www.blogger.com/feeds/8166852/posts/default/99281778795953399' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1703601702'/></entry><entry><id>tag:blogger.com,1999:blog-8166852.post-3185705558947714513</id><published>2009-10-16T14:29:07.962-06:00</published><updated>2009-10-16T14:29:07.962-06:00</updated><title type='text'>Thanks for this code :)  I also noticed that if a ...</title><content type='html'>Thanks for this code :)  I also noticed that if a cell is null when you go into edit mode an exception is thrown. Added a simple IIF statement to resolve:&lt;br /&gt;&lt;br /&gt;In CalendarCell.InitializeEditingControl:&lt;br /&gt;&lt;br /&gt;ctl.Value = CType(IIf(Not IsDate(Me.Value), Now, Me.Value), DateTime)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/3185705558947714513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/3185705558947714513'/><link rel='alternate' type='text/html' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html?showComment=1255724947962#c3185705558947714513' title=''/><author><name>Chuck</name><uri>http://www.blogger.com/profile/14447485972902090274</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html' ref='tag:blogger.com,1999:blog-8166852.post-99281778795953399' source='http://www.blogger.com/feeds/8166852/posts/default/99281778795953399' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-879925701'/></entry><entry><id>tag:blogger.com,1999:blog-8166852.post-9197241315312144015</id><published>2009-09-08T10:29:10.384-06:00</published><updated>2009-09-08T10:29:10.384-06:00</updated><title type='text'>As far as I know, the standard DTP control doesn&amp;#...</title><content type='html'>As far as I know, the standard DTP control doesn&amp;#39;t support this, so it won&amp;#39;t be trivial.  You might try seeing if you can hook into the KeyDown or KeyPress events on the control, count characters, and when two characters are typed, do a SendKeys to send the CurrentUICulture.DateTimeFormat.DateSeparator character.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know if it will work, but it&amp;#39;s something to try.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/9197241315312144015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/9197241315312144015'/><link rel='alternate' type='text/html' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html?showComment=1252427350384#c9197241315312144015' title=''/><author><name>Yakko Warner</name><uri>http://www.blogger.com/profile/12276550157896918123</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/yakkowarner/Ry6C4utWcPI/AAAAAAAAAHk/80O9-nO5fV4/s144/BugBashGP.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html' ref='tag:blogger.com,1999:blog-8166852.post-99281778795953399' source='http://www.blogger.com/feeds/8166852/posts/default/99281778795953399' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1703601702'/></entry><entry><id>tag:blogger.com,1999:blog-8166852.post-8381034947787757082</id><published>2009-09-08T00:14:44.120-06:00</published><updated>2009-09-08T00:14:44.120-06:00</updated><title type='text'>I need to avoid typing slash as well. If the user ...</title><content type='html'>I need to avoid typing slash as well. If the user enters two digits in month, then the mouse should automiatically move to the Date portion. Pl let me know how to handle this?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/8381034947787757082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8166852/99281778795953399/comments/default/8381034947787757082'/><link rel='alternate' type='text/html' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html?showComment=1252390484120#c8381034947787757082' title=''/><author><name>Ad</name><uri>http://www.blogger.com/profile/11251658328957024201</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://3.bp.blogspot.com/_WbA1ozEC3Dc/SVhtRcG38HI/AAAAAAAAAAk/TWfxIrUGBKY/S220/SP_A0115.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yakkowarner.com/2009/04/fixing-datagridviews-calendarcolumn.html' ref='tag:blogger.com,1999:blog-8166852.post-99281778795953399' source='http://www.blogger.com/feeds/8166852/posts/default/99281778795953399' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-168423483'/></entry></feed>
