Otis wrote:
Every control bound to a datatable derived class will bind to a dataview, so I find it really strange this happens. If you cast the typed view to a DataTable, does it work then?
nope, at least how i think u mean it.
getting more confused at the moment, because:
Dim col As New ActiviteitLstTypedView
col.Fill(0, Nothing, False, Nothing)
'good for us, there ARE rows
log.Logger(log.LVL_DEBUG, "aantal rijencol: " & col.Rows.Count)
If (col.DataSet Is Nothing) Then
'woops, this shouldn't happen but it does
log.Logger(log.LVL_DEBUG, "ColDataset empty")
Else
log.Logger(log.LVL_DEBUG, "ColDataset NOT empty")
End If
'lets clone the baby
Dim dt As DataTable = col
'same as above
log.Logger(log.LVL_DEBUG, "aantal rijen: " & dt.Rows.Count)
If (dt.DataSet Is Nothing) Then
log.Logger(log.LVL_DEBUG, "Dataset empty")
Else
log.Logger(log.LVL_DEBUG, "Dataset NOT empty")
End If
rptDoc.SetDataSource(dt)
so that doesn't help me.
however i did notice that when i do:
Dim dt as DataTable = col.Clone()
that doesn't work at all. this gives me now rows in the Datatable.