G Guest Sep 20, 2005 #1 Hi, Which property or method returns the number of rows in a DataGrid? Thanks
C Chris Sep 20, 2005 #2 Mike said: Hi, Which property or method returns the number of rows in a DataGrid? Thanks Click to expand... 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
Mike said: Hi, Which property or method returns the number of rows in a DataGrid? Thanks Click to expand... 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