Posted
on Feb 9, 2012
(permalink)
Got the issue.
After leaving the context, i was clearing the data source collection assigned to GridView.ItemSource something like below -
List<MyClass> obj = new List<MyClass>;
try
{
//Populate obj here.
this.gridview.ItemSource = obj;
}
catch(Exception)
{}
finally
{
obj.clear(); // This was the culprit
}