Click here to Skip to main content
15,889,759 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am Using datagridview Control in a C# Form Application.

I want to change the back color of cells.
Back color should be till the length of the text in cell.
Remaining Part of the same cell should remain Unchanged.

How Can i code to get the above result.

Thank you
Lakshman
Posted

1 solution

What you need is highlighting, not really the background color.
See this[^] thread.
 
Share this answer
 
v2

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