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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridDropDownGridListControlPart backcolor

Thread ID:

Created:

Updated:

Platform:

Replies:

38335 Dec 9,2005 07:46 PM UTC Dec 9,2005 08:53 PM UTC Windows Forms 2
loading
Tags: GridControl
Francis Ouellet
Asked On December 9, 2005 07:46 PM UTC

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

Administrator [Syncfusion]
Replied On 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

Francis Ouellet
Replied On December 9, 2005 08:53 PM UTC

Thanks!!!!

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;