View Single Post
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: MSHFlex Grid Field get Highlighted if it is current date

 
0
  #2
Jan 7th, 2009
Hi,

Once the Grid is Loaded, Loop thru the column and Highlight if matching, Say, you are Date Column is 2, Check this Code:

  1. Dim i As Integer
  2. For i = 1 To Grd.Rows-1
  3. If ISDate(Grd.TextMatrix(i,2)) Then
  4. If CDate(Grd.TextMatrix(i,2)) = Date Then
  5. Grd.Col = 2
  6. Grd.Row = i
  7. Grd.CellFontBold = True
  8. Grd.CellBackColor = vbBlue
  9. Grd.CellFontColor = vbWhite
  10. End If
  11. Next

Change Control Name accordingly..

Regards
Veena
Reply With Quote