{
foreach (UnitType item in Couseunit)
{
if (item.unit_id == 0)
{
item.unit_id = 1;
item.active = true;
}
}
List Couseunit = new List();
dgCunit.DataSource = Couseunit.Where(x => x.unit_id == 0).ToList();
dgCCCourse.DataSource = Couseunit.Where(x => x.unit_id == 1 & x.active == "Y").ToList();
how can i resolve the error
operator '==' cannot be applied to operand of type bool and string
Michal HabalcikPosted May 21, 2015, 7:38 AM