BUG in DataBind? After .DataBind there are more DataGrid Items than DataSet Rows!

M

Michael

Consider:

Private Sub BindData(ByRef objDataSet As DataSet)
Dim x% = DataGrid_Report.Items.Count()
Dim y% = objDataSet.Tables(0).Rows.Count()
' Bind to the DataGrid
DataGrid_Report.DataSource = objDataSet.Tables(0)
DataGrid_Report.DataBind()
x = DataGrid_Report.Items.Count
y = objDataSet.Tables(0).Rows.Count()
' Format the checklist
Call Format_Checklist(objDataSet)
End Sub

The top x and y are initially both 18, yet after the .DataBind, y = 18
and x = 20. How can this be? Is this a bug in the DataBind method?
The xml for the DataSet looks good. What can I do to investigate
further??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top