Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to get the text from the active cell of a grid

Hi,

I want to get the text from the active cell of a grid, but when i call the GetText(row) function, i get an empty string or that text what was in the cell before got the focus.

How can i get the active cell value from the grid.

When I used Matrix, i did this:

Text = oMatrix.Columns.Item("Col1").Cells.Item(1).specific.String

I tried the following ways:

1.

Text = oGrid.DataTable.GetValue("Col1", Row)

2.

Text = oGrid.DataTable.Columns.Item("Col1").Cells.Item(Row).Value

3.

Text = CType(oGrid.Columns.Item(ColUID), SAPbouiCOM.EditTextColumn).GetText(Row)

Thanks

Not what you were looking for? View more on this topic or Ask a question