If I set the UltraCombo.CheckedListSettings.CheckStateMember property to "Selected"
designer can not be displayed but error occured.
The error message is "The ValueMember property and CheckStateMember property both reference column 'Selected'. The CheckStateMemver property cannot reference the same column that defines the control's value"
So I removed the CheckStateMember property value. Designer has no prolbem, but UltraCombo does not operate any more.
Please let me know how to solve this problem.
Hello guidegi,
The CheckStateMember property should be set to a different value than the ValueMember property or you will get a System.Exception. I tried this scenario and after I remove the CheckStateMember property value or set it to a different column, I have no problems with the combo functionality.
Could you please send me the sample that is not working and I will take a look at it?
I have not set the ValueMember property, but I get the Exception.
This is my desinger code
this.uc_Type.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.uc_Type.CheckedListSettings.CheckStateMember = "Selected"; this.uc_Type.CheckedListSettings.EditorValueSource = Infragistics.Win.EditorWithComboValueSource.CheckedItems; ugColumn_Selected.AutoSizeMode = Infragistics.Win.UltraWinGrid.ColumnAutoSizeMode.AllRowsInBand; ugColumn_Selected.DataType = typeof(bool); ugColumn_Selected.Header.Caption = ""; ugColumn_Selected.Header.CheckBoxVisibility = Infragistics.Win.UltraWinGrid.HeaderCheckBoxVisibility.Always; ugColumn_Selected.Header.VisiblePosition = 0; ugColumn_Selected.Width = 27; ugc_Type.AutoSizeMode = Infragistics.Win.UltraWinGrid.ColumnAutoSizeMode.AllRowsInBand; ugc_Type.Header.Caption = "Type"; ugc_Type.Header.VisiblePosition = 1; ultraGridBand1.Columns.AddRange(new object[] { ugColumn_Selected, ugc_Type}); appearance14.TextHAlignAsString = "Center"; ultraGridBand1.Override.CellAppearance = appearance14; appearance15.TextHAlignAsString = "Center"; ultraGridBand1.Override.HeaderAppearance = appearance15; this.uc_Type.DisplayLayout.BandsSerializer.Add(ultraGridBand1); this.uc_Type.DisplayStyle = Infragistics.Win.EmbeddableElementDisplayStyle.WindowsVista; this.uc_Type.DropDownStyle = Infragistics.Win.UltraWinGrid.UltraComboStyle.DropDownList; this.uc_Type.Location = new System.Drawing.Point(84, 73); this.uc_Type.Name = "uc_Type"; this.uc_Type.PreferredDropDownSize = new System.Drawing.Size(0, 0); this.uc_Type.Size = new System.Drawing.Size(175, 22); this.uc_Type.TabIndex = 24; this.uc_Type.AfterCloseUp += new System.EventHandler(this.uc_Type_AfterCloseUp); this.uc_Type.BeforeDropDown += new System.ComponentModel.CancelEventHandler(this.uc_Type_BeforeDropDown);