1

I have two DataGridView, the first containing a list of users the other containing colors.

First DataGridView (Users)

The First DataGridView

The second DataGridView (Colors)

DataGridView that contains colors

By selecting a cell from the first DataGridView, the program allows you to associate a color with a user. The association takes place using the right mouse button and selecting the color.

After selection, the user's cell becomes colored, of the selected color, using the BackGroundColorproperty.

The problem

The problem now is that I have to allow the user to associate multiple colors with a user, so how can I visualize that the cell has been associated with multiple colors?

Do you have any graphic idea of how to accomplish this? Unfortunately, you can not associate more colors in a Cell, the only thing you can do is use the gradient but it does not matter to me.

2

Outlook's approach of handling categories seems good.

mockup

download bmml source – Wireframes created with Balsamiq Mockups

  • As a solution it is valid and very effective. Unfortunately in WinFormit is really hard to do such a thing, especially to apply in a cell of a DataGridView. Because even managing colors as images to associate with cells can always and only associate one. – Lorenzo Belfanti Apr 20 '17 at 9:11
  • How many color combinations are possible? – Harshal Apr 20 '17 at 9:14
  • Theoretically the colors that can be associated can be infinite, I would be happy even if it worked at least with 10! – Lorenzo Belfanti Apr 20 '17 at 9:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.