﻿<?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?)  » Using MS Datagrid and Ingragistics Calendar pulldown and Combobox's</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 03:38:07 GMT</lastBuildDate><ttl>20</ttl><item><title>Using MS Datagrid and Ingragistics Calendar pulldown and Combobox's</title><link>http://forum.strataframe.net/FindPost10477.aspx</link><description>Hi all. I've seen this done but I just can't remember how. My grid is displaying a datetime from the database, how can I get it to just display only the date and not the time.  A setting in the BO mapper?  &lt;br&gt;
&lt;br&gt;
Also I'm using the UltraCalendarComboColumn and I set the default date to DT. Which sets the default date to 01/01/1800.. pretty useless. So, I put the following code in the RowEnter event which should if the calendar does not have a date already set from the database, use the following code to set the date... but it didn't.  No error was thrown either.. sigh... any ideas?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
   '--Set default date for pulldown calendar.&lt;br&gt;
        Try&lt;br&gt;
            Me.StatusDateDataGridViewTextBoxColumn1.DefaultNewRowValue = Today()&lt;br&gt;
        Catch ex As Exception&lt;br&gt;
            System.Windows.Forms.MessageBox.Show(ex.ToString)&lt;br&gt;
        End Try&lt;br&gt;
&lt;br&gt;
Regards from a poor .net newbie...&lt;br&gt;
&lt;br&gt;
Robert</description><pubDate>Fri, 20 Jul 2007 09:17:26 GMT</pubDate><dc:creator>Robert Carl Johnson</dc:creator></item><item><title>RE: Using MS Datagrid and Ingragistics Calendar pulldown and Combobox's</title><link>http://forum.strataframe.net/FindPost10493.aspx</link><description>Thanks Trent.&lt;br&gt;
&lt;br&gt;
Robert</description><pubDate>Fri, 20 Jul 2007 09:17:26 GMT</pubDate><dc:creator>Robert Carl Johnson</dc:creator></item><item><title>RE: Using MS Datagrid and Ingragistics Calendar pulldown and Combobox's</title><link>http://forum.strataframe.net/FindPost10482.aspx</link><description>[quote]A setting in the BO mapper? [/quote]&lt;/P&gt;&lt;P&gt;No.&amp;nbsp; Unless you create a custom property to return the value you want.&amp;nbsp; It depends on where and when you are displaying a date value.&amp;nbsp; You can just use teh native .NET formatting to specify what to show.&amp;nbsp; For example, if you have a date field and want to show only the short date format....and not rely on the Short Date settings on the OS (a good idea for consistency at times) you can just use the MM/dd/yyyy.&lt;/P&gt;&lt;P&gt;[codesnippet]MsgBox(String.Format({0:MM/dd/yyyy},DateTime.Now))[/codesnippet]&lt;/P&gt;&lt;P&gt;Anywhere that you use the formatting in SF this way (i.e. Lists, ListView, &amp;nbsp;and Combos) you can supply the formatting like above.&lt;/P&gt;&lt;P&gt;For example, a column ina ListView:&lt;/P&gt;&lt;P&gt;[codesnippet]{0:MM/dd/yyyy}[/codesnippet]</description><pubDate>Thu, 19 Jul 2007 22:38:54 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>