Click here to Skip to main content
15,921,716 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,


I am using DataGridView Control in an Application.
In that DataGridView, One Column is dataGridViewCombobox Column.

In each Combobox, there are 4 Items.

What I need to do is For Each Item, its Bcak Color Should Be Different.
I want to get an event such that,
On Combobox Drop, these items should be visible with their appropriate back and For Colors.
Is there any Such Event in DatagridView Events.?

How Can i implement this.

Thank you in Advance

Regards
Lakshman
Posted
Updated 17-Nov-10 19:10pm
v2

1 solution

You cannot do it using the standard DataGridViewComboBoxColumn. You have to create your own custom ownern ComboBox, then wrap that in your own custom DataGridViewColumn, inheriting from that class.

You can find examples of such here[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900