Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4262
  • Last Modified:

Listview item multiline on Windows Mobile

I'm working for Windows mobile 6 with compact framework 3.5.
I want to have a Listview, or other control (only Microsoft) to have two line on one item.
The lines havent same font size.

Please, look, example below.

It's possible ?

Thank's.
Exemple-Listview.jpg
0
Anticylone
Asked:
Anticylone
  • 4
  • 3
1 Solution
 
alexey_gusevCommented:
look here for the sample for custom DataGrid:

http://blogs.msdn.com/priozersk/archive/2007/11/11/datagrid-with-a-custom-header-and-selection.aspx

here is some code to customise ListView:

http://blog.opennetcf.com/ayakhnin/CategoryView,category,ListView%20header.aspx

The main idea is to override Paint() or DrawItem()
0
 
alexey_gusevCommented:
0
 
AnticyloneAuthor Commented:
Thank's you for this samples.

I try to override the OnPaint event of ListView, but don't know which item is painting and I have not found the DrawItem event.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
alexey_gusevCommented:
I think DataGrid might be easier, with ListView it is more complicated, but for some sample you could look here: http://www.opennetcf.com/Default.aspx?tabid=120
0
 
AnticyloneAuthor Commented:
Thank's for your response.

I finaly find this link : http://msdn.microsoft.com/en-us/library/ms229679.aspx
Now it work as ListView

Regards
0
 
alexey_gusevCommented:
great :)
0
 
AnticyloneAuthor Commented:
Thank's for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now