I need to truncate a long string in a column of an asp.net gridview without any white space. I want to wrap it with an ellipsis, but the text-overflow property is not recognized by CSS. Here's my current code:
<asp:TemplateField HeaderText="MD9" ItemStyle-Width="200px">
<ItemTemplate>
<div style="width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis">
<%# Eval("MD9")%>
></div>
</ItemTemplate>
</asp:TemplateField>
How can I make this work?