string tempQuery= "<Where><Eq><FieldRef Name=\"Title\"/>"+
"<Value Type=\"Text\">xyz</Value></Eq></Where>;
SPList listView= oWeb.Lists[listName];
for(int i = 0; i < listView.Views.Count; i++)
{
//Get the view
SPView view = listViewActual.Views[i];
if(view.DefaultView)
{
oWeb.AllowUnsafeUpdates = true;
view.Query = tempQuery;
view.Update();
oWeb.AllowUnsafeUpdates = false;
}
}Programmatically Apply the filter to SharePoint List Default View
