Hi,
My purpose is to use a combo as a list of checkboxes. The problem is that I have not possibility to modify the value of checkbox in the list.(With UltraGrid there is possiblity to do that, but I would like to use ultracombo because an ultracombo use less space on form.)
On UltraCombo it is possible to set CellClickAction on Edit value, but runtime there is an exception:
System.NotSupportedException: Cell activation not supported at Infragistics.Win.UltraWinGrid.UltraGridCell.SetFocusAndActivate(Boolean byMouse, Boolean enterEditMode, Boolean byTabKey) at Infragistics.Win.UltraWinGrid.UltraGridCell.SetFocusAndActivate(Boolean byMouse, Boolean enterEditMode)
Private Sub testControl_InitializeLayout(sender As Object, e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles testControl.InitializeLayout
With e.Layout.Bands(0)
.Columns("Value").CellActivation = Infragistics.Win.UltraWinGrid.Activation.AllowEdit
.Columns("Value").CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.Edit
.Columns("Value").Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox
End With
End Sub
I would like to use ultracombo to modify data in datatable. Can I do this with ultracombo or I need another control for that purpose?
Thank you. It works.
Hi Adonia,
UltraCombo does not support editing cells in the dropdown portion of the control.
The one exception to this is check boxes, but you can't do it via CellActivation. If you want to display CheckBoxes that the user can check and uncheck in the list, you must do this via the CheckedListSettings on the UltraCombo.
I have attached a very simple sample project here that does demonstrates this.