List View Control CF .NET. Change Color and Sort by Columns

  • Thread starter Thread starter Alamo
  • Start date Start date
A

Alamo

Good Morning,

does anybody know how to change color to "list view control" on CF .NET ,
and sort by columns?

Thanks and best regards.

Alamo
 
Setting the BackColor and ForeColor for the control should work as long as
you have .NETCF Service Pack 2 on your device.

Sorting is a different story, the native ListView control does support
sorting but this requires a callback function which is not possible with
..NETCF. So your best recourse here is to repopulate the listview from a
sorted collection (such as a DataView) how often you intend to resort the
list and how many items the list contains will dictate whether this approach
is suitable.

Peter
 
Sorting is with SP1 not possible (maybe SP2?).
Since I fill my ListView from a DataTabe I create a (sorted) DataView
according to the Column clicked and fill the ListView with this.
SP2 has certin Background colour support.

Mark Johnson, Berlin Germany
(e-mail address removed)
 

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

Back
Top