Skip to main content

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.

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.

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

and

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.