PC Review


Reply
Thread Tools Rate Thread

ComboBox and Formatting bound data

 
 
Brad
Guest
Posts: n/a
 
      4th Oct 2003
Hello all,

I am using a combobox and binding a dataview to the
control. The control displays dates from a database. I am
trying to figure out how to format the date information
coming from the data. Right now it displays the full date
and time string but I only want it to display the date
(DD/MM/YY). Does any one know how to pull this off?

Thnanks
Brad
 
Reply With Quote
 
 
 
 
Kirk
Guest
Posts: n/a
 
      5th Oct 2003
The easiest way to solve this is to format the date in your SQL Statement.
If you can't do this, you will need to use the Expression property of the
datacolumn object to format it correctly.

Kirk Graves

"Brad" <(E-Mail Removed)> wrote in message
news:068d01c38ac9$78f1d4c0$(E-Mail Removed)...
> Hello all,
>
> I am using a combobox and binding a dataview to the
> control. The control displays dates from a database. I am
> trying to figure out how to format the date information
> coming from the data. Right now it displays the full date
> and time string but I only want it to display the date
> (DD/MM/YY). Does any one know how to pull this off?
>
> Thnanks
> Brad



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Bound Combobox SelectedIndex Jeff Microsoft VB .NET 1 22nd Oct 2009 08:37 PM
Strange behavior data-bound combobox Crazy Cat Microsoft VB .NET 2 8th Feb 2006 09:00 PM
comboBox displays bound data out of order Dica Microsoft C# .NET 2 24th Oct 2005 09:09 PM
cannot set SelectedIndex = -1 in data bound ComboBox =?Utf-8?B?QWxleCBLLg==?= Microsoft C# .NET 0 7th Jul 2005 03:08 PM
Formatting Bound ComboBox with DateTime David Adams Microsoft Dot NET Framework Forms 3 7th Jul 2004 10:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:39 AM.