I have changed from the flexgrid to datagrid..but somehow i still
cannot see the result.. please look at the code
error stating: Complex DataBinding accepts as a datasourceeither and
Ilistor an IList Source..
HELP
Imports ADODB
Imports System.Data
Imports System.Data.SqlClient
---
Private Sub Form3_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub btnPreview_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles btnPreview.Click
Try
'Open an ADO Connection
adoCn.Open("Provider=SQLOLEDB.1; Integrated
Security=SSPI;" _
& "Persist Security Info=False; Initial
Catalog=Northwind;" _
& "Data Source=BLACKIE")
'Open an ADO Recordset
adoRs.Open(sql, adoCn, _
ADODB.CursorTypeEnum.adOpenKeyset, _
ADODB.LockTypeEnum.adLockOptimistic, 0)
' fill datagrid
dgReports.DataSource = adoRs
adoCn.Close()
adoRs.Close()
Catch
UnhandledExceptionHandler()
End Try
End Sub