Carlos kambui

Carlos kambui

  • NA
  • 499
  • 117.4k

help o solve this error

May 21 2015 7:17 AM
{
foreach (UnitType item in Couseunit)
{
if (item.unit_id == 0)
{
item.unit_id = 1;
item.active = true;
}
}
List<UnitType> Couseunit = new List<UnitType>();
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

Answers (1)