Ah, thanks for that David, that would work.
I was trying to resolve a row sizing issue in Opera I'm having and thought
about setting the grid height, then changing the height on the last page to
size the rows correctly. The last page height would depend on the number of
rows.
http://msdn.microsoft.com/newsgroups...4-78a8afb5e50c
I have resolved the issue with another 'hack', but your response would work
to get the number of rows in the last page.
Thanks,
--
Regards,
Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
"David C" wrote:
Phil,
Can't you just count them in Row Databound event? Then you could show that
count in a footer or ?
HTH
David
"Phil Johnson" <Ph*********@discussions.microsoft.comwrote in message
news:FE**********************************@microsof t.com...
Hi,
I have a gridview with paging enabled.
I need to know how many rows of data are on the last page!!!
When I look at the Gridview1.Rows.Count in the Page_Load, it always
returns
the number that the paging is set to... currently 13, but if there are
only 4
rows on the last page, I need to know that there are only 4 rows.
--
Regards,
Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com