Truncating ListView Cell
-
I have a ListView set to details mode, which contains file paths. Is it possible to truncate the cells from the left hand side instead of the right? For example: If a cell contains a string (C:\Windows\Some directory\file.txt), then if the column is too small, the cell just reads C:\Windows\So... I need it to truncate from the other side, so it reads ...ctory\file.txt. Is this possible?
-
I have a ListView set to details mode, which contains file paths. Is it possible to truncate the cells from the left hand side instead of the right? For example: If a cell contains a string (C:\Windows\Some directory\file.txt), then if the column is too small, the cell just reads C:\Windows\So... I need it to truncate from the other side, so it reads ...ctory\file.txt. Is this possible?
It's not supported natively. You'd have to come up with your own implmentation of the ListView control and replace the drawing code to support this.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
It's not supported natively. You'd have to come up with your own implmentation of the ListView control and replace the drawing code to support this.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007