I know one way to change the background color of a cell in a datagrid view:
DataGridView1.CurrentCell.Style.BackColor = Color However, I only have to change the background color for just one part of the text.
For example, if I have "Harry meets" in one cell, I would like to set "Harry" in the pink background and set "Sally" in a green background.
Do anyone know the best way to do this? Any help will be very much appreciated.
This standard device can not be used with avalible. You will need to override the color event of the custom code which is derived from the DataGridViewImageCell An example of how to do this is provided as part of this reply, indicating that a DataGridViewCell How to Create a Progress Bar inside Using this answer, it should not work even on the detail of what you need. I hope it will be helpful.
Comments
Post a Comment