By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,086 Members | 1,452 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,086 IT Pros & Developers. It's quick & easy.

ListView: Three dots '...' issue

P: n/a
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,
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

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" <Bu***@Onlinework.com>
| Sender: "Buddy" <Bu***@Onlinework.com>
| Subject: ListView: Three dots '...' issue
| Date: Mon, 4 Aug 2003 06:14:45 -0700
| Lines: 9
| Message-ID: <07****************************@phx.gbl>
| 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,
|

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.