2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
Set the color of text in gridTo change the text color, we need to handle the QueryCellInfo event of the embedded grid in MultiColumnComboBox's DropDown event. C# private void MultiColumnComboBox1_DropDown(object sender, EventArgs e) { GridControl grid = this.MultiColumnComboBox1.ListBox.Grid; grid.QueryCellInfo += new GridQueryCellInfoEventHandler(grid_QueryCellInfo); } void grid_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) { e.Style.TextColor = Color.Blue; }
VB Private Sub MultiColumnComboBox1_DropDown(ByVal sender As Object, ByVal e As EventArgs) Handles MultiColumnComboBox1.DropDown Dim grid As GridControl = Me.MultiColumnComboBox1.ListBox.Grid AddHandler grid.QueryCellInfo, AddressOf grid_QueryCellInfo End Sub Private Sub grid_QueryCellInfo(ByVal sender As Object, ByVal e As GridQueryCellInfoEventArgs) e.Style.TextColor = Color.Blue End Sub |
2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.