Skip to Content
avatar image
Former Member

Matrix - invalid column number

Error - Matrix - invalid column number
During Fill value in Grid column through this error . 
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Jul 05, 2017 at 07:12 AM

    Hi,

    I had the same error... after a few attempts it seems to me that the maximum lenght accepted for ColumnUID is 20 characters!

    Renaming column names under this limit, it started to work!

    Give it a try...

    PS: I didn't find any reference to this limit. If confirmed it should be reported to SBO Support.

    Add comment
    10|10000 characters needed characters exceeded

    • When you create a DataTable object (binded to a Grid object) pay attention to every "DataColumn"."Name" property;

      it seems to have problems if the "Name" lenght is greater than 20 characters.

      So if you have:

      MyDataTable.SetValue("column_name_more_than_20_characters", rowIndex, value);

      you'll get :

      Error - Matrix - invalid columnnumber

  • avatar image
    Former Member
    May 19, 2017 at 12:59 PM

    Dim strCol As String = oRecordset.Fields.Item("U_QUESTION").Value
    Dim strAns As String = oRecordset.Fields.Item("U_ANSWER").Value
    Dim strArr() As String oHashTable.Add(iHashKey, oRecordset.Fields.Item("U_QSTID").Value) oGridQuest.DataTable.Columns.Add(strCol, SAPbouiCOM.BoFieldsType.ft_AlphaNumeric, 50) If oRecordset.Fields.Item("U_ANSMOD").Value = "COMBOBOX" Then
    oGridQuest.Columns.Item(strCol).Type = SAPbouiCOM.BoGridColumnType.gct_ComboBox strArr = strAns.Split("|")
    If strArr.Count > 0 Then
    For iCount As Integer = 0 To strArr.Count - 1
    oGridQuest.Columns.Item(strCol).ValidValues.Add(strArr(iCount), strArr(iCount))
    Next
    End If Else
    oGridQuest.Columns.Item(strCol).Type = SAPbouiCOM.BoGridColumnType.gct_EditText
    End If oRecordset.MoveNext()
    iHashKey = iHashKey + 1
    End While

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 19, 2017 at 03:19 PM

    oGridQuest.Columns.Item(strCol).Type = SAPbouiCOM.BoGridColumnType.gct_ComboBox

    oGridQuest.Columns.Item(strCol).Type = SAPbouiCOM.BoGridColumnType.gct_EditText

    on this line

    please support me ..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 20, 2017 at 06:28 AM

    oGridQuest.Columns.Item(strCol).Type = SAPbouiCOM.BoGridColumnType.gct_EditText

    i am use maximum possibility but code through error Matrix invalid column Number

    Add comment
    10|10000 characters needed characters exceeded