Click here to Skip to main content
16,012,611 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help with a code I can't seem to get work Pin
John McMahon11-Jun-10 7:31
John McMahon11-Jun-10 7:31 
GeneralRe: Help with a code I can't seem to get work Pin
John McMahon11-Jun-10 7:33
John McMahon11-Jun-10 7:33 
GeneralRe: Help with a code I can't seem to get work Pin
Wes Aday11-Jun-10 7:41
professionalWes Aday11-Jun-10 7:41 
GeneralRe: Help with a code I can't seem to get work Pin
John McMahon11-Jun-10 7:42
John McMahon11-Jun-10 7:42 
QuestionStop formatting of datagridview cell [solved] Pin
chrispowell1234511-Jun-10 1:01
chrispowell1234511-Jun-10 1:01 
AnswerRe: Stop formatting of datagridview cell Pin
Wayne Gaylard11-Jun-10 1:30
professionalWayne Gaylard11-Jun-10 1:30 
GeneralRe: Stop formatting of datagridview cell Pin
chrispowell1234511-Jun-10 3:01
chrispowell1234511-Jun-10 3:01 
GeneralRe: Stop formatting of datagridview cell Pin
Wayne Gaylard11-Jun-10 3:34
professionalWayne Gaylard11-Jun-10 3:34 
I think in that case you will need to specifically test whether the value is a date using something like this :
VB.NET
While count <= fieldnoend
  grid.Rows.Add()
  grid.Item(0, rowcount).Value = rows(rowcount)
  if drgetcustfile.Item(count).GetType.ToString = "System.DateTime" Then
    grid.Item(1, rowcount).Value = Format(drgetcusfile.Item(count),"short date")
  Else
    grid.Item(1, rowcount).Value = drgetcusfile.Item(count)
  End If
End While


This is just off the top of my head. Hope it Helps

Happy Coding
GeneralRe: Stop formatting of datagridview cell Pin
chrispowell1234511-Jun-10 5:11
chrispowell1234511-Jun-10 5:11 
GeneralRe: Stop formatting of datagridview cell Pin
Luc Pattyn11-Jun-10 6:40
sitebuilderLuc Pattyn11-Jun-10 6:40 
GeneralRe: Stop formatting of datagridview cell Pin
Wayne Gaylard11-Jun-10 16:53
professionalWayne Gaylard11-Jun-10 16:53 
GeneralRe: Stop formatting of datagridview cell Pin
Luc Pattyn11-Jun-10 17:15
sitebuilderLuc Pattyn11-Jun-10 17:15 
GeneralRe: Stop formatting of datagridview cell Pin
chrispowell1234513-Jun-10 22:30
chrispowell1234513-Jun-10 22:30 
GeneralRe: Stop formatting of datagridview cell Pin
Wayne Gaylard14-Jun-10 20:22
professionalWayne Gaylard14-Jun-10 20:22 
AnswerRe: Stop formatting of datagridview cell Pin
ddecoy11-Jun-10 1:31
ddecoy11-Jun-10 1:31 
GeneralRe: Stop formatting of datagridview cell Pin
ddecoy11-Jun-10 1:32
ddecoy11-Jun-10 1:32 
AnswerRe: Stop formatting of datagridview cell Pin
Luc Pattyn11-Jun-10 3:40
sitebuilderLuc Pattyn11-Jun-10 3:40 
QuestionDetermining if WindowsForm is open and closing it Pin
Member 442053410-Jun-10 21:39
Member 442053410-Jun-10 21:39 
AnswerRe: Determining if WindowsForm is open and closing it Pin
freakyit10-Jun-10 22:10
freakyit10-Jun-10 22:10 
GeneralRe: Determining if WindowsForm is open and closing it Pin
Member 442053410-Jun-10 22:55
Member 442053410-Jun-10 22:55 
AnswerRe: Determining if WindowsForm is open and closing it Pin
Wayne Gaylard10-Jun-10 23:20
professionalWayne Gaylard10-Jun-10 23:20 
GeneralRe: Determining if WindowsForm is open and closing it Pin
Member 442053410-Jun-10 23:35
Member 442053410-Jun-10 23:35 
GeneralRe: Determining if WindowsForm is open and closing it Pin
Wayne Gaylard11-Jun-10 0:56
professionalWayne Gaylard11-Jun-10 0:56 
QuestionHow to use merge module for two VB6 projects Pin
Andraw Tang10-Jun-10 11:53
Andraw Tang10-Jun-10 11:53 
AnswerRe: How to use merge module for two VB6 projects Pin
Eddy Vluggen11-Jun-10 5:19
professionalEddy Vluggen11-Jun-10 5:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.