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.

ComboBox PrepareViewStyleInfo refresh?

Thread ID:

Created:

Updated:

Platform:

Replies:

101080 Sep 23,2011 01:30 PM Sep 29,2011 01:11 AM Windows Forms 2
loading
Tags: GridControl
Sam Marrocco
Asked On September 23, 2011 01:30 PM

I am using a column in a non-databound Grid to display comboboxes containing a list of words. The background color of the *closed* combobox should be red if a certain word ("Complete") is selected.

Using the PrepareViewStyleInfo() event seems to work....
Private Sub JobsGC_PrepareViewStyleInfo(sender As Object, e As Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs) Handles JobsGC.PrepareViewStyleInfo

If e.ColIndex = 7 And e.Style.CellType = "ComboBox" And e.Style.Text.ToUpper = "COMPLETE" Then

'only highlights the background color when the combo box in column 7 has "COMPLETE" selected.
e.Style.BackColor = PreferencesForm.CompleteColor.Color
End If
End Sub

However, after selection and closing of the combobox, the background color of the cb does not change immediately. It does not change until you select another cell in the grid.

How can I force an update of the combobox within the PrepareViewStyleInfo() event? Or am I performing the view changes in the wrong place? I would like the combobox to change it's style immediately after release/close of the drop down.



Sam Marrocco
Replied On September 27, 2011 08:24 PM

Any suggestions to solve this?


Asarudheen S [Syncfusion]
Replied On September 29, 2011 01:11 AM

Hi Sam,

Thank you for your interest in Syncfusion products.

Please follow up the incident 85516 because of both query are the same.

Please let us know if you have any further concern.

Regards,
Asarudheen.



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.

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.

;