cancel
Showing results for 
Search instead for 
Did you mean: 

Add new row to Matrix with C#

Former Member
0 Kudos

How can I do ?

I want to use event press key 'Enter' for add new row to matrix

Please, you can give me example about it ?

I use with C#

thanks you !

Accepted Solutions (0)

Answers (1)

Answers (1)

costas_ioannou2
Active Participant
0 Kudos

Hi I think this should work. When you press enter a row should be added.

if ((FormUID == "XXXXX") & (pVal.EventType == SAPbouiCOM.BoEventTypes.et_KEY_DOWN) & (pVal.BeforeAction == false))

{

try

{

if (pVal.CharPressed == 13)

{

oMatrix.AddRow(1, oMatrix.RowCount);

}

}

catch

{ }

}