cancel
Showing results for 
Search instead for 
Did you mean: 

Matrix.SelectRow()-Problem

Former Member
0 Kudos

Hi friends

ii write code for select row when click a cell on the row

i wrote the code in the click event but its not working

got Error

Matrix-selection is not supported for this item

the code is

oForm = SBO_Application.Forms.Item(pVal.FormUID);

oMatrix = SAPbouiCOM.Matrix)oForm.Items.Item("GEnMatr").Specific;

oMatrix.SelectRow(pVal.Row, false, false);

Edited by: billu on May 28, 2008 1:16 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

i fixed the error. before calling oMatrix.SelectRow() method we sholud set selection mode. do like below

oMatrix.SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Auto;

oMatrix.SelectRow(pVal.Row, true, false);

former_member682029
Contributor
0 Kudos

Please close the thread.