Home Forums WinForms controls Xceed Grid for WinForms Populating GridComboBox on activate Reply To: Populating GridComboBox on activate

User (Old forums)
Post count: 23064

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


For Each tempCell In grdGrid.DataRowTemplate.Cells

AddHandler tempCell.EnteringEdit, AddressOf Me.cell_EnteringEdit


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
End If

End Sub

Private Sub cell_EnteringEdit(ByVal sender As Object, ByVal e As Xceed.Grid.EnteringEditEventArgs)

‘Fill combo with correct data

End Sub

Imported from legacy forums. Posted by Jeff W (had 331 views)