How To Disable Some Items Of A Combobox

C# Code
  1. private void Form1_Load(object sender, EventArgs e)  
  2. {  
  3.     UnselectItem();  
  4. }  
  5.   
  6. public void UnselectItem()  
  7. {  
  8.     this.comboBox1.ValueMember = "Value";  
  9.     this.comboBox1.DisplayMember = "Text";  
  10.     this.comboBox1.Items.AddRange(new[] {  
  11.     new ComboBoxItem() { Selectable = false, Text="Unselectable", Value=0},  
  12.     new ComboBoxItem() { Selectable = true, Text="Selectable1", Value=1},  
  13.     new ComboBoxItem() { Selectable = true, Text="Selectable2", Value=2},  
  14.     new ComboBoxItem() { Selectable = false, Text="Unselectable", Value=3},  
  15.     new ComboBoxItem() { Selectable = true, Text="Selectable3", Value=4},  
  16.     new ComboBoxItem() { Selectable = true, Text="Selectable4", Value=5},  
  17.      });  
  18.     this.comboBox1.SelectedIndexChanged += (cbSender, cbe) =>  
  19.     {  
  20.         var cb = cbSender as ComboBox;  
  21.   
  22.         if (cb.SelectedItem != null && cb.SelectedItem is ComboBoxItem && ((ComboBoxItem)cb.SelectedItem).Selectable == false)  
  23.         {  
  24.             // deselect item  
  25.             cb.SelectedIndex = -1;  
  26.             MessageBox.Show("You cannot select this Item");  
  27.         }  
  28.     };  
  29. }  
  30. //User Defined class for Combobox Item with the Selectable property
  1. private class ComboBoxItem  
  2. {  
  3.     public int Value { getset; }  
  4.     public string Text { getset; }  
  5.     public bool Selectable { getset; }