cancel
Showing results for 
Search instead for 
Did you mean: 

Row Numbering In Matrix

arpit_shah2
Participant
0 Kudos

hi guys,

I create one form in screen painter and use this form in VB.net. In this form one matrix is available.

In the first column of the matrix I want to display serial number for the Row.

how is it possible to display serial number in the first column?

can anyone help me for this problem?

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello.

You can write there Row from pVal.Row.

In screen painter this row has UID "V_-1". You can get properties of this column.

Hope it helps.

Regards

Kamil Wydra

Former Member
0 Kudos

Hi

What also works quite nicely is when you start painting the matrix with code, is to delete this column, and then add another column as you wish, see some sample code below


oMatrix = oform.Items.Item("4").Specific
            oMatrix.Columns.Remove("V_0")

            oMatrix.Columns.Add("Type", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oColumn = oMatrix.Columns.Item("Type")
            oColumn.DataBind.SetBound(True, "", "uds7")
            oColumn.TitleObject.Caption = "Entity"
            oColumn.Editable = False
            oColumn.Width = "100"


Answers (0)