Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Highlight row in User Matrix

Dear Sir

   I have written the below code . I want instead of clicking on "#" if we click on any column in row  it should get highlight.

If (pVal.FormTypeEx = "TypeFrmMatrix" And pVal.BeforeAction = True And pVal.ItemUID = "Matrix1") Then

            Try

                If (pVal.ColUID = "#" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) Then

                    oMatrix = oForm.Items.Item("Matrix1").Specific

                    oMatrix.SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Single

                    For i As Integer = 1 To oMatrix.RowCount

                        If (oMatrix.IsRowSelected(i) = True) Then

                            oMatrix.SelectRow(i, True, True)

                        End If

                    Next

                End If

            Catch ex As Exception

                SBO_Application.MessageBox(ex.Message)

            End Try

        End If

Thanks

Former Member
Not what you were looking for? View more on this topic or Ask a question