cancel
Showing results for 
Search instead for 
Did you mean: 

how can i disable particular row or cell in Matrix or Grid ?

Former Member
0 Kudos

How can i make particular row or cell disable either in Matrix or Grid ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In the et_Click event make the cell as non editable by setting BubbleEvent = false.so u cant edit the particular cell.

sample Code:

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK and pval.beforeaction=true then

If UItemCode.Value.Length <= 0 Then

BubbleEvent = False

End If

Kind regards

Mohana

Former Member
0 Kudos

In Matrix

oMatOPE2 as sapboui.matrix

oMatOPE2 = frmOPE2.Items.Item("Matrix2").Specific

oMatOPE2.CommonSetting.SetCellEditable(row number, column number, False)

Answers (2)

Answers (2)

Former Member
0 Kudos

ON that particular col click plz click another colum.

On the Got focus of ur col click the other col.

Hope it helps,

Vasu Natari.

Former Member
0 Kudos

U can disable matrix by setting the editable property to false as,


 Dim objColumns As SAPbouiCOM.Columns
        Dim objColumn As SAPbouiCOM.Column

        objColumns = matItem.Columns
        objColumn = objColumns.Item(0)
        objColumn.Editable = False
 

Here matItem is the name of matrix.

Former Member
0 Kudos

Well... I want to disable particular cell or row notentire column.

Former Member
0 Kudos

Alpesh,

you cannot disable it in standard ways. The only thing you can do is, when user click on some cell and you know, that the cell is disabled, you can catch the event of selecting cell and set the bubbleevent to false. The difference is, that user will see the cell as editable, but he cannot click on it. The row youll find from pval.row and cell from column in pval.