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

Number of rows in Datagrid

P: n/a
Hi,

Which property or method returns the number of rows in a DataGrid?
Thanks
--
Regads,
Rochdi
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Mike wrote:
Hi,

Which property or method returns the number of rows in a DataGrid?
Thanks


This question was answered on the 19th:

You have to get it from the datasource.

If your datasource is a DataTable then:
DirectCast(Datagrid.DataSource, DataTable).Rows.Count

otherwise replace DataTable with whatever type is in the datasource.

Chris
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.