Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Gridview returns old value of gridview.rows.count!

Thread Tools

Gridview returns old value of gridview.rows.count!

Posts: n/a
I have a label that shows the number of records returned by my
gridview. So after gridview ondatabound event I check to see if the
gridview.rows.count > 0, and if true then show row count in label but
empty gridviews my label shows an old row count of the previous
gridview. What can I do to get the current row count?

Thanx in advanx.

Reply With Quote
Posts: n/a
Never mind... I realized that I had a condition which didn't clear the
label if the gridview returned 0 count.
Is associating the label to the ondatabound event the best way to show
row count? Any other/better ways?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridview returns old value of gridview.rows.count! MC ASP .Net 2 12-12-2008 11:15 PM
Sorted Returns List and Reversed Returns Iterator ++imanshu Python 7 08-23-2008 04:25 AM
createImage sometime returns null and sometime returns non-null. vizlab Java 3 10-17-2007 11:21 AM
block returns and hash element returns Trans Ruby 2 11-06-2005 12:15 PM
New value doesn't stick. Old value returns unless the window is refreshed Diana Javascript 1 04-06-2004 12:09 AM