-
July 23rd, 2013, 04:03 AM
#1
Problem with DataGridView
I have an application in VB 2005 and try to replace old AxMSHierarchicalFlexGridLib.AxMSHFlexGrid
with a DataGridView
Before I used a connection to a database like this:
cn = New ADODB.Connection
rs = New ADODB.Recordset
cn.Open(ODBC_cn, USR, PSSWD)
cn.CursorLocation = ADODB.CursorLocationEnum.adUseNone
rs.Open(strSql, cn, , ADODB.LockTypeEnum.adLockOptimistic, ADODB.CommandTypeEnum.adCmdText)
then I simply used
Public WithEvents hiflegriSeek As AxMSHierarchicalFlexGridLib.AxMSHFlexGrid
hiflegriSeek.DataSource = rs
...but I can´t do that when I declare hiflegriSeek as DataGridView
when I use hiflegriSeek.DataSource = rs
the result is just nothing
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
|