|
-
Jan 16th, 2003, 10:56 AM
#1
Thread Starter
New Member
Hierarchical Flexgrid - Error 30022
Can anyone help? - I have searched MSDN and these forums, but to avail.
I am trying to populate a mshflexgrid (in VB6) with the following simple statement:
Private Sub Form_Load()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
With cn
.Provider = "SQLOLEDB"
.ConnectionString "server=xxxx;database=xxx_test;uid=xxxxx;password=pword"
.Open
End With
rs.Open "select * from Product", cn
Set MSHFlexGrid1.DataSource = rs
End Sub
The final statement, 'Set MSHFlexGrid1.DataSource = rs' produced the following error message:
Run Time Error '30022':
The Hierarchical Flexgrid does not support the requested type of data binding.
I have added the Microsoft Hierarchical Flexgrid Control 6.0 (SP4) to components and added Microsoft ActiveX Data Objects 2.7 Library to References.
That is everything there is - broken down to simplest level, yet still no joy. Can anyone help - is it a simple programming error or am I missing a component??
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
|
Click Here to Expand Forum to Full Width
|