Skip to Content
0
Former Member
Aug 11, 2009 at 11:39 AM

Resetting matrix rows

36 Views

Hello,

My form is in ADD Mode and i'm deleting some rows from it thru my code using the following code:

matItems = SBO_Application.Forms.ActiveForm.Items.Item("38").Specific

matItems.DeleteRow(intMatRow)

Now,

This deletes the row at intMatRow, but the matrix row numbers do not reset as they do when we select and delete a row manually.

For. eg.: if there are 3 rows in my matrix and i delete the first row, then the row numbers remain 2 and 3 for the remaining rows.

I want them to change to 1 and 2 as there are only 2 rows now.

Please help me with this.