Skip to Content
May 06, 2016 at 09:05 AM

Matrix cell value update is hide



I've a empty matrix. I insert new columns and I add same empty row.

I update cell value of the first column...

Private WithEvents matrix0 As SAPbouiCOM.Matrix

matrix0.Columns.Remove(0) 'Remove #

Dim oColumn As SAPbouiCOM.Column = matrix0.Columns.Add("N° Doc", SAPbouiCOM.BoFormItemTypes.it_EDIT)

oColumn.TitleObject.Caption = "N° Doc"

oColumn.Width = 50

oColumn.Editable = True

oColumn.Visible = True

oColumn = matrix0.Columns.Add("Pos", SAPbouiCOM.BoFormItemTypes.it_EDIT)

oColumn.TitleObject.Caption = "Pos"

oColumn.Width = 50

oColumn.Editable = True

oColumn.Visible = True



matrix0.Columns.Item("N° Doc").Cells.Item(1).Specific.value = Form1.dt1.GetValue("docentry", 1)

matrix0.Columns.Item("N° Doc").Cells.Item(2).Specific.value = Form1.dt1.GetValue("docentry", 1)

[* Form1.dt1.GetValue("docentry", 1) is a correct value for test]

When appears matrix I se the correct value on matrix0.Columns.Item("N° Doc").Cells.Item(2) but matrix0.Columns.Item("N° Doc").Cells.Item(1) is hide.

If I click on matrix0.Columns.Item("N° Doc").Cells.Item(1), matrix0.Columns.Item("N° Doc").Cells.Item(2) value is hide.

I can see only the cell where I do click!!!

How can I see all the value???

Thanks a lot