Skip to Content
author's profile photo Former Member
Former Member

How to get a Selected Row Count

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 01:04 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 12:42 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.