GridDropDownGridListControlPart backcolor

Hi, How to set the backcolor of the GridDropDownGridList. For the moment, the backcolor is always the same as the currentcel backcolor. Check in the attachment, and dropdown the list at the red row for a sample. Thanks

TestFavorisClay.zip

2 Replies

AD Administrator Syncfusion Team December 9, 2005 08:08 PM UTC

Thank you for the sample. You can handle the CurrentCellShowingDropDown event and set the colors there.
    Private Sub gridFavoris_CurrentCellShowingDropDown(ByVal sender As Object, ByVal e As _
   GridCurrentCellShowingDropDownEventArgs) Handles gridFavoris.CurrentCellShowingDropDown
        If TypeOf (Me.gridFavoris.CurrentCell.Renderer) Is GridDropDownGridListControlCellRenderer Then
            Dim cr As GridDropDownGridListControlCellRenderer = Me.gridFavoris.CurrentCell.Renderer
            cr.ListControlPart.Grid.TableStyle.BackColor = Color.White
            cr.ListControlPart.Grid.Properties.BackgroundColor = Color.White
        End If
    End Sub


FO Francis Ouellet December 9, 2005 08:53 PM UTC

Thanks!!!!

Loader.
Up arrow icon