cancel
Showing results for 
Search instead for 
Did you mean: 

Adding new row into Grid using Ctrl+I

Former Member
0 Kudos

Dear all,

I added a new folder in the Service Contract SAP B1 form.

I bound a new grid to a DataTable and I can populate it.

When I select the new folder, I populate the grid, but in SAP B1 Menu the "Add row" option is disabled.

How can I enable this feature as it happens for the other grid/matrix in SAP B1 system folder?

How can capture the Ctrl+I key Event?

I need to capture this event to add a new row in the Grid.

Regards

Emanuele

Accepted Solutions (1)

Accepted Solutions (1)

christophe_averous
Active Participant
0 Kudos

oForm.EnableMenu("1292", True)

To activate the menu.

After you have to catch the menuevent to insert the line

Christophe

Former Member
0 Kudos

Dear Christophe,

I'm sorry, but this command is not allowed for system SAP B1 form.

Regards

Emanuele

christophe_averous
Active Participant
0 Kudos

Emanuele,

I think that the only solution in that case is to add your own menu:

Dim oMenu As SAPbouiCOM.MenuItem = oForm.Menu.Add("U_ADD", "Ajouter ligne", BoMenuType.mt_STRING, 0)

Regards

Christophe

Former Member
0 Kudos

Dear all,

what command do I have to use to add a new empty row in a grid control?

Regards

Emanuele

Former Member
0 Kudos

Hi,

probably I found the solution:

oGrid.DataTable.Rows.Add(1)

Regards

Emanuele

Answers (0)