Group: Forum Members
Posts: 48,
Visits: 130
|
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?
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?
'--Set default date for pulldown calendar.
Try
Me.StatusDateDataGridViewTextBoxColumn1.DefaultNewRowValue = Today()
Catch ex As Exception
System.Windows.Forms.MessageBox.Show(ex.ToString)
End Try
Regards from a poor .net newbie...
Robert
|