CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2003
    Posts
    1

    Red face Format and Parse

    I have a combo box that is bound to a date in a dataset. The problem is the date is displayed with both the date and time and I only want the short date to be displayed. I used the Format and Parse handler, but the first date changes to the short date format but once the drop down is selected the dates revert back to the long date format. I know I am missing something simple, if I one could help it would be appreciated.

  2. #2
    Join Date
    May 2002
    Location
    Toronto
    Posts
    167
    the simplest solution is don't bind it to the combo box add it and then use the index of the selected string in the combo box to refer back to the row in the dataset

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured