Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21852

[RESOLVED] MS FlexGrid Issue

$
0
0
Hi,
I want to Change the Font to Bold and Alignment to VBFlexCenterCenter of Last row in my Flexgrid. Please check the attached picture and find the below code

Code:

                While Not rs.EOF = True
                    With fgPostDate
                        .TextMatrix(.Row, 0) = rs(0)
                        .TextMatrix(.Row, 1) = rs(1)
                        .TextMatrix(.Row, 2) = rs(2)
                        .TextMatrix(.Row, 3) = rs(3)
                        .TextMatrix(.Row, 4) = rs(4)
                        TotalAmount = Val(TotalAmount) + Val(rs(4))
                        .Rows = .Rows + 1
                        .Row = .Row + 1
                    End With
                    rs.MoveNext
                Wend
               
                With fgPostDate
                 
                    .TextMatrix(.Row, 3) = "----------------------------------------------------"
                    .TextMatrix(.Row, 4) = "------------------"
                                   
                    .Rows = .Rows + 1
                    .Row = .Row + 1
                   
                    .TextMatrix(.Row, 3) = "                          T O T A L"
                    .TextMatrix(.Row, 4) = Val(TotalAmount)
                End With

Name:  FgIssue.JPG
Views: 167
Size:  23.8 KB

Farooq
Attached Images
 

Viewing all articles
Browse latest Browse all 21852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>