Tubibtoon
10-06-2001, 06:45 AM
I have a problem with Datagrid. I use a ADODC in combination with Datagrid, but when I activate the datagrid, I get a extra row (row 1) which is empty. How can I get rid of this extra useless (empty) row.
My code:
Const sSql = "SELECT * FROM xTable ORDER BY yField"
Adodc1.LockType = adLockOptimistic
Adodc1.CursorType = adOpenDynamic
Adodc1.RecordSource = App.Path & "\data\algemeen.mdb
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "\data\Algemeen.mdb"
selecteer (sSql)
Function selecteer(ByVal sSql As String)
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = sSql
Adodc1.Refresh
End Function
Please help me!
Thanks in advance.
My code:
Const sSql = "SELECT * FROM xTable ORDER BY yField"
Adodc1.LockType = adLockOptimistic
Adodc1.CursorType = adOpenDynamic
Adodc1.RecordSource = App.Path & "\data\algemeen.mdb
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "\data\Algemeen.mdb"
selecteer (sSql)
Function selecteer(ByVal sSql As String)
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = sSql
Adodc1.Refresh
End Function
Please help me!
Thanks in advance.