GridView DataBound

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

after binding a SqlDataSource to a GridView, I see 6 records (which is what
I want to have !)
But if I request a GridView.Rows.Count in the DataBoundEvent, the result is
5. And I cannot retrieve the 6th item in my list

What am I doing wrong?

thx

Benoit
 
That seems odd. Why get the data from the GridView? Why not get it from the
DataTable that the GridView is bound to?

I always use someting like:

For i as Integer = 0 To GridView.Rows.Count - 1
'Show me GridView.Rows(i)
Next
 

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

Back
Top