I am using EF in my project and i fill my Datagridview with collection see below...
private void FillGrid()
{
int ID = Convert.ToInt32(Session["testID"]);
var data = dbData.tbltest2.Where(x => x.ID== ID && x.testIsDeleted == false && x.testStatus == 1).ToList();
if (data.Count > 0)
{
grdViewtestList.DataSource = data;
grdViewtestList.DataBind();
Session["JobListData"] = data;
}
else
{
grdViewtestList.DataSource = null;
grdViewtestList.DataBind();
}
}
i wont to use RowFilter with data which is i fill my Data Gridview . so can you please tell me how can i use rowfilter with collection in EF.
anyone please help me it's argent.
thanks in advance.