We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon