Results 1 to 3 of 3

Thread: Another MSFlexGrid questions(s)

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    34

    Post

    My Flexgrid is working beautifully. However, how can I set a specific column width? In addition, is it possible to click on a row, then click a command button and open a new form and display that particular record?

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Sure.


    MSFlexGrid1.ColWidth(0) = 150


    This will change the width of the first column in the MsFlexGrid.

    For your second question:

    Code:
        Dim i As Integer
        
        Load Form2
        With MSFlexGrid1
            For i = 0 To .Cols - 1
                Form2.Text1(i).Text = .TextMatrix(.Row, i)
            Next
        End With
        Form2.Show
    Assuming tht Form2 has control array of Text1 (textboxes)

    ------------------

    Serge

    Programmer Analyst
    [email protected]
    [email protected]
    ICQ#: 51055819


  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    34

    Post

    I'm not sure I understand how this snippet of code works...

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