Link to home
Start Free TrialLog in
Avatar of glenn_r
glenn_r

asked on

vb.net tableLayoutPanel.rowcount is incorrect

Visually i have 10 rows on the screen
If i query the tableLayoutPanel.rowcount is always equals 2
this coincidentally equal my initial design time rows
i basically want to cycle through each control in the first column and need to know the number of rows
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of glenn_r
glenn_r

ASKER

how can i get the number of rows in the control?
if you want the number of rows returned
you need to use the SQL command rowcount
http://msdn.microsoft.com/en-CA/library/ms188774.aspx

USE AdventureWorks;
GO
SELECT count(*) AS Count
FROM Production.ProductInventory
WHERE Quantity < 300;
GO

Open in new window