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?
Printable View
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?
Sure.
MSFlexGrid1.ColWidth(0) = 150
This will change the width of the first column in the MsFlexGrid.
For your second question:
Assuming tht Form2 has control array of Text1 (textboxes)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
------------------
Serge
Programmer Analyst
[email protected]
[email protected]
ICQ#: 51055819
I'm not sure I understand how this snippet of code works...