Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
rolf Absent Member.
Absent Member.


Listview works very fine to display a list. Is there also a procedure to modify/capture directly one field within the List? I think about something similar to a spreadsheet where you can modify directly the contents of one cell and not the whole row.

In the lviewctl appear lots of  DB-Call-Function, but no one to fill only one field (cell) of the whole list.

Any help?  I want to Change only the marked cell.  Or is the only solutiuon copy the whole row to individual entry fields?

Thanks for any help.

1 Reply
Micro Focus Expert
Micro Focus Expert

Re: Listview

You can access the individual columns of a selected row by returning the ListViewItem object for the selected row and then using the methods:

setColumnValue using lnkIndex lnkValue


getColumnValue using lnkindex returning lnkValue

where lnkIndex is a numeric index representing the column number from left to right.

The ListView Demo in the Net Express set of demos shows how to do this within the control program, LVIEWCTL.cbl.


The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.