cancel
Showing results for 
Search instead for 
Did you mean: 

Create Blank Row When I past Data In Matrix

abbas95
Explorer
0 Kudos

I want to add auto rows In matrix But When I past Row Data in Matrix, It create Blank Rows Between Pasted Records.

The code I used to generate auto rows is ..

private void Matrix1_LostFocusAfter(object sboObject, SBOItemEventArg pVal)

{

//throw new System.NotImplementedException();

if (pVal.ColUID == "C_0_20")

{

Matrix1.AddRow();

Matrix1.ClearRowData(Matrix1.RowCount);

}

}

and out put is

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear naqvi.abbas,

While using AddRow() method, you can specify at which position you would like to add the row.

I don't see that in your code.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

abbas95
Explorer
0 Kudos

Dear ankit.chauhan1

I used matrix lost focus after event

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear naqvi.abbas,

No, this is not what I mean. I want you to set the position of the new row which is being added using the AddRow() method.

Refer to the following image about AddRow() Method:

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

Accepted Solutions (0)

Answers (0)