lee-r
4/28/2020 - 3:56 PM

Hiding inactive items from DropDownList or ComboBox

 var item = e.Item as DropDownListItem;
  var o = (Entity)item.DataItem;

  if (o != null)
  {
      item.Visible = o.IsActive;
  }
  
//Even if the entity is not visible in the dropdown, it will show as the selected item