cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a Selected Row Count

Former Member
0 Kudos

Hi,

How to Get a Selected Row Count

Ex : In Matrix Get Total Number of Rows use - Row Count

If I selected Three row how can get the Selected row Count

regards

Jambu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

there is one property for matrix object

oMatrix.GetNextSelectedRow() Which will give you the Next selected row number.

Hope this helps you

Regards

Vishnu

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jambu,

I didn't investigate in detail, but assume the easiest way is to declare a counter and then run through the matrix and check every line for IsRowSelected. Example:

                                Dim iRows As Integer
                                Dim iCount As Integer
                                For iRows = 0 To oMatrix.RowCount - 1
                                    If oMatrix.IsRowSelected(iRows) = True Then
                                        iCount += 1
                                    End If
                                Next

Hope it helps,

Adele