Home All Groups Group Topic Archive Search About

Gridview returns old value of gridview.rows.count!

Author
25 Apr 2006 11:38 PM
MC
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.

Author
26 Apr 2006 1:51 PM
MC
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?
Thanx.

AddThis Social Bookmark Button