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

I am using data grid view, where column header height and width(column width) can be resized.
I have wrap mode on for column header,so by default the column header height will be taken as 23.
Now if column header has more then 1 line of text,only first line will be dislayed and other header text will be hidden. I want to show ellipsis for the hidden text
Matt T Heffron 30-Oct-13 18:39pm    
Web, WinForms or WPF, or ???

1 solution

CSS may be your friend here :)

<span style="overflow: hidden;white-space:nowrap;text-overflow:ellipsis;max-width:300px;display:inline-block;vertical-align:middle">Data you want to show ellipsis when it exceeds the width of 300px, in this example.</span>
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