By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,665 Members | 1,900 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,665 IT Pros & Developers. It's quick & easy.

GridView DataBound

P: n/a
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
Dec 1 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
"benoit" <be****@discussions.microsoft.com> wrote in message
news:1E**********************************@microsof t.com...
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

Dec 1 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.