<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CXTPPropertyGridItemDate: Having problems changing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : CXTPPropertyGridItemDate: Having problems changing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 14:56:25 +0000</pubDate>
  <lastBuildDate>Fri, 06 Oct 2006 11:16:45 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=5237</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CXTPPropertyGridItemDate: Having problems changing :  Hello,  I would like to put...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5237&amp;PID=16378&amp;title=cxtppropertygriditemdate-having-problems-changing#16378</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2151">drisch</a><br /><strong>Subject:</strong> 5237<br /><strong>Posted:</strong> 06 October 2006 at 11:16am<br /><br /><FONT size=2><DIV>Hello,</DIV><DIV>&nbsp;</DIV><DIV>I would like to put a date/time value into a property grid. If I use a CXTPPropertyGridItem, I have the drop-down calendar, but here is the problem.</DIV><P>As long as I only have a date and use the following format, everything works:</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>m_startDateCtrl = new CXTPPropertyGridItemDate("Start Date",&nbsp;&nbsp; m_StartingDateTime);</P><P>m_startDateCtrl-&gt;SetDateFormat("%d-%m-%Y");</P></BLOCKQUOTE><P>But when I try to show the date in the format "06-Oct-2006" as follows:</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>m_startDateCtrl-&gt;SetDateFormat("%d-%b-%Y");</P><DIV>m_startDateCtrl-&gt;SetMask("00-LLL-0000", "__-___-____");</DIV></BLOCKQUOTE><P>The date does indeed show correctly, but now when I change the date in the calendar, the change is ignored in the property cell. It just keeps the old value.</P><P>If I try to add a time to my date, such as with the following:</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>m_startDateCtrl-&gt;SetDateFormat("%d-%m-%Y %I:%M %p");</P><P>m_startDateCtrl-&gt;SetMask("00-00-0000 00:00 LL", "__-__-____ __:__ __");</P></BLOCKQUOTE><P>the value displays properly initially, but if I make changes with the keyboard directly in the property cell (to change the time), the changes are not saved when I leave the cell, but rather revert to the old value.</P><P>My two questions are, 1) how can I display a month as an abbreviation (e.g. Oct.) and still be able to edit the field; and 2) how can I display and edit the time along with the date?</P><DIV></DIV>Any help would be appreciated. <DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV>Derek</DIV></FONT>]]>
   </description>
   <pubDate>Fri, 06 Oct 2006 11:16:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5237&amp;PID=16378&amp;title=cxtppropertygriditemdate-having-problems-changing#16378</guid>
  </item> 
 </channel>
</rss>