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