I used a LVBQ in a visual webpart. The list is displayed successfully and the filter applied using the Query is working without any problem.
Now, I want to edit the items displayed by the listview. The LVBQ appears to be a read only solution though.
I want it to be modified and I think there's a solution but I don't know what it is exactly. Any help would be appreciated.
there is some code for displaying my list using a LVBQ:
ListViewByQuery listview = new ListViewByQuery();
if (liste != null)
{
listview.List = liste;
SPQuery query = new SPQuery(listview.List.DefaultView);
query.Query = "<Where><Geq><FieldRef Name=\"Created\"/><Value Type=\"DateTime\"><Today OffsetDays=\"-7\" /></Value></Geq></Where>";
listview.Query = query;
}
Controls.AddAt(0, listview);
So, To enlarge the possibility of having other solutions i say that what i am working on is simply to display a list in a visual webpart with the ability to edit its items.