Skip to Content
0
Dec 05, 2014 at 11:07 AM

How to count the number of selected rows in a grid?

513 Views

Hi,

I have a grid with one column of checkboxes. I use VB.NET.

During runtime, as the user ticks each checkbox, I would like the number of selected rows (i.e checked) to be displayed on the status bar.

I've read that we can use the foll. command to count the no. of rows with a ticked checkbox, but could not make it work:

oGrid.Rows.SelectedRows.Count

There are very few posts on this topic on the forum, and SDK help is very sparse.

Can anybody help?

Thanks