GridView DataBound

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
 
T

Terry Olsen

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top