Results 1 to 3 of 3

Thread: displaying record in checkbox

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2013
    Posts
    1,126

    displaying record in checkbox

    I have a yes/no data on the database (ex. access db) which is -1 or 0 and then I would like to retrieve those record back to msflexgrid checkbox as wingding.

    How will I do this if this involves multiple records?

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: displaying record in checkbox

    When you load your grid you can assign font to individual cells using CellFontName property.
    The trick here is to set column index before setting row. Here is a quick sample:
    Code:
    Private Sub Command1_Click()
    Dim i As Integer
    
        With MSFlexGrid1
            .Col = 3
            For i = 1 To .Rows - 1
                .Row = i
                .CellFontName = "Wingdings 2"
                .TextMatrix(i, .Col) = Chr(80) 'or 82
            Next i
        End

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    May 2013
    Posts
    1,126

    Re: displaying record in checkbox

    thanks Rhinobull, I will try to figure out with your code to come up with what I need.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width