The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.