Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to set checkstate of particular item in repositoryItemCheckedComboBoxEdit which is bound to datasource?
  2. // Add check items to the control's dropdown.
  3. string[] itemValues = new string[] {
  4.     "Circle", "Rectangle", "Ellipse",
  5.     "Triangle", "Square" };
  6. foreach (string value in itemValues)
  7.     checkedComboBoxEdit1.Properties.Items.Add(value, CheckState.Unchecked, true);
  8. // Specify the separator character.
  9. checkedComboBoxEdit1.Properties.SeparatorChar = ';';
  10. // Set the edit value.
  11. checkedComboBoxEdit1.SetEditValue("Circle; Ellipse");
  12. // Disable the Circle item.
  13. checkedComboBoxEdit1.Properties.Items["Circle"].Enabled = false;