public void RenderDeviceSearchResult()
{
this.objectListView_DeviceList.SetObjects(
DeviceList
);
// disable row if device name doesn't exist
foreach (Object item in this.objectListView_DeviceList.Objects)
{
DeviceListViewItemModel model = item as DeviceListViewItemModel;
if (model != null)
{
if (string.IsNullOrEmpty(model.DeviceName))
{
// force disable row.
this.objectListView_DeviceList.DisableObject(item);
}
}
}
if (this.objectListView_DeviceList.GetItemCount() == this.objectListView_DeviceList.CheckedObjects.Count)
{
this.objectListView_DeviceList.CheckHeaderCheckBox(olvColumnContent_TeamId);
}
}