Link to home
Start Free TrialLog in
Avatar of RIAS
RIASFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Count rows count

Hello,
I have a column 'Sel' in datagridview which has values like true/false.
Need to count how many are 'True' and display in a label.
I am using vb.net desktop.

Regards
ASKER CERTIFIED SOLUTION
Avatar of Mlanda T
Mlanda T
Flag of South Africa 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 RIAS

ASKER

Cheers! will try and brb!
Avatar of RIAS

ASKER

Hello,
Thanks!
The count fairly works but, when the one row is selected it displays no row is selected  and count is 0 and when 2 rows are selected (sel =1) it displays one row is selected.
Any suggestion?
Avatar of RIAS

ASKER

Worked with dt.acceptchanges !