Skip to Content
0
Jun 04, 2018 at 11:32 AM

How to autocomplete a Grid Cell

40 Views Last edit Jun 04, 2018 at 11:32 AM 3 rev

Hi experts,

I want a cell to complete itself when it fills the other.

Heres my code, but it doesn't works:

Dim oDataTable As SAPbouiCOM.DataTable
        Dim code As String = Nothing
        Dim Name As String = Nothing
        '
        oDataTable = pVal.SelectedObjects()
        '
        code = oDataTable.GetValue("Code", 0)
        Me.Form.DataSources.DBDataSources.Item(Items.DBD_Header).SetValue("U_CODCNG", 0, code)
        '
        Name = oDataTable.GetValue("U_NCGR", 0)
        Me.Form.DataSources.DBDataSources.Item(Items.DBD_Header).SetValue("U_NCNG", 0, Name)