UltraGrid EditorComponent にバインドされているフォームの読み込み中に選択したインデックスを設定しようとしている 2 つの UltraCombo 項目があります...
With grdUserAccounts.DisplayLayout.Bands(0)
For x = 0 To .Columns.Count - 1
Select Case .Columns(x).Key
Case accountCategoryId
.Columns(x).Header.Caption = "Category"
.Columns(x).Width = 90
.Columns(x).Header.Appearance.TextHAlign = Infragistics.Win.HAlign.Center
.Columns(x).Header.VisiblePosition = 0
.Columns(x).CellActivation = Activation.AllowEdit
.Columns(x).EditorComponent = cboAccountCategory
.Columns(x).Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList
Case accountTypeId
.Columns(x).Header.Caption = "Type"
.Columns(x).Width = 90
.Columns(x).Header.Appearance.TextHAlign = Infragistics.Win.HAlign.Center
.Columns(x).Header.VisiblePosition = 1
.Columns(x).CellActivation = Activation.AllowEdit
.Columns(x).EditorComponent = cboAccountType
.Columns(x).Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList
End Select
Next
End With
新しい行が追加されているときにセルの値を設定しようとしましたが、うまくいきませんでした。
e.Cell.Row.Cells(x).Value = "Main"
また、コンボボックスの値を設定しようとしましたが、うまくいきませんでした。
cboAccountCategory.Value = 1
コード ビハインドからコンボ ボックスの値を設定/変更することは可能ですか?