I have a list of files (stored in db which I get using Linq), I want to put them in ASP ListView (or something better for this case if you can suggest).
This files are attachments to policies, so one policy may have them more than one.
ListView will be placed in DataGrid’s field, but I couldn’t find a way to put it there and this is my question. I also want to be able to download these files, but I don’t have elements that I could check if they were selected.
Additional info:
I bind data with DataGrid by
myDataGrid.DataSource = linqQuery.ToList();
myDataGrid.DataKeyField = "IdPolicy";
myDataGrid.DataBind();
In aspx I have Panel -> DataGrid -> Columns -> BoundColumns (with DataFields).
Please help.
You can loop through each item of DataGrid and populate ListView.