I have looked through the threads for something similar and have not found anything to help me...
I have a listview that contains rows populated manually at runtime from a datatable created in the NeedDataSource event. The columns in the datatable are bound to certain specific items in the listview. In general, this is all working fine.
However, one of the columns in the datatable contains a path/file name to an image related to the data record. This path/file name may contain a valid path or it may be an empty string ("").
If the path/file name contains data (a path/file name), then I want to display that image (photo) in a column in the the related row in the listview.
If the path/file name contains an empty string, then I want to display a "no image available" type of graphic.
This is the first time I have attempted to use the Listview control, so I'm not certain how/when to programmatically access/manipulate it to accomplish this goal.
Do you have a sample or some sample code that does this?
Thanks in advance!
Lynn
I have a listview that contains rows populated manually at runtime from a datatable created in the NeedDataSource event. The columns in the datatable are bound to certain specific items in the listview. In general, this is all working fine.
However, one of the columns in the datatable contains a path/file name to an image related to the data record. This path/file name may contain a valid path or it may be an empty string ("").
If the path/file name contains data (a path/file name), then I want to display that image (photo) in a column in the the related row in the listview.
If the path/file name contains an empty string, then I want to display a "no image available" type of graphic.
This is the first time I have attempted to use the Listview control, so I'm not certain how/when to programmatically access/manipulate it to accomplish this goal.
Do you have a sample or some sample code that does this?
Thanks in advance!
Lynn