<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.lhotka.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags '.NET 4', 'CSLA 3.8', 'SmartDate', and '.NET 2'</title><link>http://forums.lhotka.net/search/SearchResults.aspx?s=5&amp;o=DateDescending&amp;tag=.NET+4,CSLA+3.8,SmartDate,.NET+2&amp;orTags=0</link><description>Search results matching tags '.NET 4', 'CSLA 3.8', 'SmartDate', and '.NET 2'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 SP3 (Build: 36.8414)</generator><item><title>csla smart date display issue in devexpress grid</title><link>http://forums.lhotka.net/forums/p/9658/45484.aspx#45484</link><pubDate>Wed, 20 Oct 2010 04:42:07 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:45484</guid><dc:creator>Paul Coetser</dc:creator><description>&lt;p&gt;Hi There,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a problem with the display format of the smartdate within a devexpress grid.&lt;/p&gt;
&lt;p&gt;Please look at the attachedment, and within the archive there is a screendump folder.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What you will not is I have a normal datatable with a normal datetime column. &amp;nbsp;it display the date correctly within the grid. &amp;nbsp;when you click within the date column it still keeps the correct date format of dd/mm/yyyy (that is my regional settings)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have another datatable with a smart date column (instead of datetime) &amp;nbsp;and what you will note is when the data is displayed in the grid, it displayed correctly as dd/mm/yyyy. &amp;nbsp;but when you click within the date column it swap the dd and mm around and then try to do a parse of that date. &amp;nbsp;if the day &amp;gt; 12 then it becomes the month and it cannot parse that date and it will clear the active editors text. &amp;nbsp;if the day is &amp;lt;= 12 it will swap the dd and mm around in the active editors text.&lt;/p&gt;
&lt;p&gt;Now this behaviour does not happen with normal datetime.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So I&amp;#39;am not 100% sure where the problem is, but i tend to think it is within the smartdate class..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Paul Coetser&lt;/p&gt;</description></item></channel></rss>