S
sugnaboris
Hope someone can help me with a question about this control.
I would like to display a list of file names, together with a
description for each file. I've done some prototyping, and the ListView
seems ideal, at least as far as the presentation of the static
inforamation is concerned.
However:
* the Item is logically the filename (that's akin to the primary key
in my list);
* so the filename should appear leftmost, but not be editable;
* the description text is currently a SubItem (it's an attribute of
the file);
* so the description should appear on the right - but I need it to be
editable.
There are many ways to allow a SubItem to be edited indirectly, but it
would be great if I could arrange it to be editable in situ.
I think that only the Item can be edited, which means that the
description would have to become Item. But I'd really want the filename
to remain in the left column.
So I'd like to be able to have the order of columns going SubItem[0],
Item, or something like that.
Here's an illustration:
File Description
========================
myFile1 | something
myFile2 | something else
- and I'd want users to be able to edit it to read:
File Description
========================
myFile1 | summat
myFile2 | quelque chose
Is this feasible with the ListView control?
Many thanks for any replies!
Ron
I would like to display a list of file names, together with a
description for each file. I've done some prototyping, and the ListView
seems ideal, at least as far as the presentation of the static
inforamation is concerned.
However:
* the Item is logically the filename (that's akin to the primary key
in my list);
* so the filename should appear leftmost, but not be editable;
* the description text is currently a SubItem (it's an attribute of
the file);
* so the description should appear on the right - but I need it to be
editable.
There are many ways to allow a SubItem to be edited indirectly, but it
would be great if I could arrange it to be editable in situ.
I think that only the Item can be edited, which means that the
description would have to become Item. But I'd really want the filename
to remain in the left column.
So I'd like to be able to have the order of columns going SubItem[0],
Item, or something like that.
Here's an illustration:
File Description
========================
myFile1 | something
myFile2 | something else
- and I'd want users to be able to edit it to read:
File Description
========================
myFile1 | summat
myFile2 | quelque chose
Is this feasible with the ListView control?
Many thanks for any replies!
Ron