CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2005
    Posts
    113

    Unhappy Total no. of rows in datagrid and dataset..

    Hi,

    How to get total no.of rows in the dataset or datagrid. i tried as follows...

    RcdCount = dsPeople.Tables("People").Rows.Count


    Not working with this. Any ideas?


    Thank You

  2. #2
    Join Date
    Feb 2005
    Location
    Israel
    Posts
    1,475

    Re: Total no. of rows in datagrid and dataset..

    Your code seems right.
    What do you mean by "not working"?

  3. #3
    Join Date
    Oct 2005
    Location
    Islamabad, Pakistan
    Posts
    1,277

    Re: Total no. of rows in datagrid and dataset..

    try this
    Code:
    RcdCount = dsPeople.Tables("People").Rows.Count.toString

  4. #4
    Join Date
    Jun 2003
    Location
    Lahore
    Posts
    31

    Post Re: Total no. of rows in datagrid and dataset..

    Debug the code and use the the Breakpoint when u fill the dataset with data. and write immediately ds.Tables(0).Rows.count in the immediate Window. Also Check the name and Data of ur table.
    May Allah keep this world Peaceful. (Aameen)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured