DataGridView - WrapMode

  • Thread starter Thread starter Katit
  • Start date Start date
K

Katit

I would like that my text not wrapping. I also don't want' "..."
displayed if cell can't fit all text.
Unusual requirement, but client don't want' multilines and rather not
lose 2-3 chars for "..."

How do I achieve this?

Thanks!
 
Is there a way to achieve this in a custom Column type?

I'm ultimately trying to get from TextFormatFlags.WordWrap to
TextFormatFlags.PathEllipsis.

Setting the column type in my grid to DataGridViewFilePathColumn and
defining simply like this does not work.

public class DataGridViewFilePathColumn : DataGridViewTextBoxColumn
{

public DataGridViewFilePathColumn()
{
this.DefaultCellStyle.WrapMode = DataGridViewTriState.False;
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top