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

Discussion in 'ASP .Net Datagrid Control' started by Michael, Dec 29, 2003.

  1. Michael

    Michael Guest

    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??
    Michael, Dec 29, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    409
  2. ringo
    Replies:
    0
    Views:
    168
    ringo
    Aug 18, 2004
  3. JDP@Work

    DataSet Rows Updated to usp_MyUpdateProc and more q's....

    JDP@Work, Oct 2, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    140
    JDP@Work
    Oct 2, 2004
  4. Steven D'Aprano
    Replies:
    0
    Views:
    90
    Steven D'Aprano
    Dec 23, 2013
  5. Replies:
    3
    Views:
    82
    Gary Herron
    Dec 23, 2013
Loading...

Share This Page