-
Method or data member not found
[Originally posted by Marco Silva]
I was in www.freevbcode.com trying some code and it's always appearing a error. I doesn't it work in my computer? See the "split" words , those words causes errors, it says that Method or data member not found, I need some help, please.
Private Sub Form_Load()
ÿ ÿ ' Before modifying the grid's properties, make sure the
ÿ ÿ ' grid is initialized by refreshing the Data control.
ÿ ÿ Data1.Refresh
ÿ ÿ ÿ
ÿ ÿ ' Create an additional splits:
ÿ ÿ DBGrid1.splits.Add 0 ' Create an additional split
ÿ ÿ ' Hide all columns in the leftmost split, Splits(0),
ÿ ÿ ' except for columns 0 and 1
ÿ ÿ Dim Cols As Columns, C As Column
ÿ ÿ Set Cols = DBGrid1.splits(0).Columns
ÿ ÿ For Each C In Cols
ÿ ÿ ÿ ÿ C.Visible = False
ÿ ÿ Next C
ÿ ÿ Cols(0).Visible = True
ÿ ÿ Cols(1).Visible = True
ÿ ÿ ' Configure Splits(0) to display exactly two columns,
ÿ ÿ ' and disable resizing
ÿ ÿ With DBGrid1.splits(0)
-
Re:Method or data member not found
[Originally posted by Tariq Ali Shaikh]
You should go to form's GUI and check if the Data Bound grid is properly added (Click it and look at properties window, if it show "DBGrid1 PictureBox" then you have not properly installed DBGrid control. Try reinstalling VB.)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|