AD
Administrator
Syncfusion Team
July 12, 2005 06:31 PM UTC
I am not really sure why this is working for you in a GridDataBoundGrid (unless you have explicitly set grid.Model.RowCount to allocate space for row styles). Normally, a GridDataBoundGrid does not have rowstyles.
Anyway, you can try handling the CurrentCellShowingDropdown event and set the backcolor of the drop list there.
Private Sub gridControl1_CurrentCellShowingDropDown(sender As Object, e As GridCurrentCellShowingDropDownEventArgs)
Dim cc As GridCurrentCell = Me.gridControl1.CurrentCell
Dim cr As GridComboBoxCellRenderer = cc.Renderer ''
If Not (cr Is Nothing) Then
cr.ListBoxPart.BackColor = Color.LightGoldenrodYellow
End If
End Sub ''gridControl1_CurrentCellShowingDropDown