Home › Forums › WinForms controls › Xceed Grid for WinForms › Populating GridComboBox on activate › Reply To: Populating GridComboBox on activate
You need to subscribe to the cell’s Entering edit event and then in this event load the combo.
Here is what I have done. Hope this helps.
Private Sub AddEvents()
Dim tempCell As Xceed.Grid.Cell
grdGrid.BeginInit()
For Each tempCell In grdGrid.DataRowTemplate.Cells
AddHandler tempCell.EnteringEdit, AddressOf Me.cell_EnteringEdit
Next
grdGrid.EndInit()
End Sub
Private Sub grdGrid_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles grdGrid.CurrentCellChanged
If Not grdGrid.CurrentCell Is Nothing Then
grdGrid.CurrentCell.EnterEdit()
End If
End Sub
Private Sub cell_EnteringEdit(ByVal sender As Object, ByVal e As Xceed.Grid.EnteringEditEventArgs)
‘Fill combo with correct data
LoadCombo(mcboValue1)
End Sub
Imported from legacy forums. Posted by Jeff W (had 331 views)