on 09-08-2008 1:46 PM
How can i make particular row or cell disable either in Matrix or Grid ?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.