| | |
MSHFlex Grid Field get Highlighted if it is current date
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi,
Once the Grid is Loaded, Loop thru the column and Highlight if matching, Say, you are Date Column is 2, Check this Code:
Change Control Name accordingly..
Regards
Veena
Once the Grid is Loaded, Loop thru the column and Highlight if matching, Say, you are Date Column is 2, Check this Code:
vb Syntax (Toggle Plain Text)
Dim i As Integer For i = 1 To Grd.Rows-1 If ISDate(Grd.TextMatrix(i,2)) Then If CDate(Grd.TextMatrix(i,2)) = Date Then Grd.Col = 2 Grd.Row = i Grd.CellFontBold = True Grd.CellBackColor = vbBlue Grd.CellFontColor = vbWhite End If Next
Change Control Name accordingly..
Regards
Veena
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: timer help
- Next Thread: FILL COMBO WITHOUT dupes...
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





