N
Nabu
I have built a customized ADO recordset. I would like to put the data
into a data grid, but the OleDbDataAdapter fill method wants a table name.
Is there a way to put a customized recordset into a data grid without using
a table name? or is there a default table name give to the recordset?
Code:
Dim objWMIPatchState As clsWMIPatchState
Dim dsPatchState As DataSet = New DataSet("recordset")
Dim da As OleDbDataAdapter = New OleDbDataAdapter
objWMIPatchState = New clsWMIPatchState("playground")
da.Fill(dsPatchState, objWMIPatchState.WMIPatch) <== error here
dtgOutput.DataSource = da
into a data grid, but the OleDbDataAdapter fill method wants a table name.
Is there a way to put a customized recordset into a data grid without using
a table name? or is there a default table name give to the recordset?
Code:
Dim objWMIPatchState As clsWMIPatchState
Dim dsPatchState As DataSet = New DataSet("recordset")
Dim da As OleDbDataAdapter = New OleDbDataAdapter
objWMIPatchState = New clsWMIPatchState("playground")
da.Fill(dsPatchState, objWMIPatchState.WMIPatch) <== error here
dtgOutput.DataSource = da