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

Visual Basic

 
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 
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 
yep your right,

all the sql for each of the controls is hard coded into the custom control. I possibly could bundle the sql into the databse (we're using Solid....ever heard of it?) however this has never been done in the application before and it's a 13 year habit I don't want to break. As Uniface, the other platform we have used since 1990, retrieves the data in such an efficiant manner in it's own weird way, starting to add queries into the database now doesn't make sense to us for few a tiny and simple query screens. Where else would you put the sql?

The data is stored in date type fields on the database so i shouldn't really get the string value I guess....

BTW, what is a OP?

Chris

oh and I tried

grid.Columns(0).DefaultCellStyle.Format = "dd/MM/yyyy"


but when the column is used for a actual string value, i.e an order number, I just get dd/MM/yyy although the date is converted properly


Turns out they needed to be date type cells for sorting so used this:

grid.Item(1, rowcount).Value = drgetcusfile.Item(count)
               If grid.Item(1, rowcount).Value.GetType.Equals(GetType(Date)) Then
                   grid.Item(1, rowcount).Style.Format = "dd/MM/yyyy"
               End If
:
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 
GeneralRe: How to use merge module for two VB6 projects Pin
Andraw Tang11-Jun-10 5:33
Andraw Tang11-Jun-10 5:33 
QuestionWCF Windows Service - won't "listen" when not start with system user Pin
nlarson1110-Jun-10 4:30
nlarson1110-Jun-10 4:30 
AnswerRe: WCF Windows Service - won't "listen" when not start with system user Pin
Richard MacCutchan10-Jun-10 5:57
mveRichard MacCutchan10-Jun-10 5:57 
AnswerRe: WCF Windows Service - won't "listen" when not start with system user Pin
Richard MacCutchan10-Jun-10 22:57
mveRichard MacCutchan10-Jun-10 22:57 
Questioncustom property at cell level for a datagird vb.net Pin
rasnarakesh9-Jun-10 23:37
rasnarakesh9-Jun-10 23:37 

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.