ListView: Three dots '...' issue

B

Buddy

Hello,

Does anyone know how I can tell the ListView NOT to
display the three dots when it thinks the text will not
fit in the column.
E.g. 'Hello World' will be displayed as 'Hello...' if the
column width cannot fit the word 'World'.

Thanks,
 
J

Jeffrey Tan[MSFT]

Hi Buddy,

You can compare your item's string length with the column header's width.
If the string's length is more than the the column header's width, you can
cut the
item string so that it dose not display "..."

To get the column header's width, you can use ListView control's Columns
property.
For each ColumnHeader in ColumnHeaderCollection, use its width property.

Hope this helps.

Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "Buddy" <[email protected]>
| Sender: "Buddy" <[email protected]>
| Subject: ListView: Three dots '...' issue
| Date: Mon, 4 Aug 2003 06:14:45 -0700
| Lines: 9
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNail+1K/8kCT2JTHahWz7kwL/BwQ==
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:173972
| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hello,
|
| Does anyone know how I can tell the ListView NOT to
| display the three dots when it thinks the text will not
| fit in the column.
| E.g. 'Hello World' will be displayed as 'Hello...' if the
| column width cannot fit the word 'World'.
|
| Thanks,
|
 

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

Top