We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Listview item multiline on Windows Mobile

Medium Priority
4,496 Views
Last Modified: 2013-12-21
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
Comment
Watch Question

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()

Author

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.
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

Author

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
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thank's for your help.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.