MSHFlex Grid Field get Highlighted if it is current date
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
![]() |
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...
•
•
•
•
Views: 367 | Replies: 1 | Currently Viewing: 1 (0 members and 1 guests)





Linear Mode