Hi Benjamin,
If I would guess what you are doing, it seems like you are constructing the listview and coloring the rows while building. If so, you are bound to have problems, as when someone clicks the column header, the ListView gets sorted and everything goes nuts. That is why Ori suggested a custom ListView that would account for all that.
I think it would help us see the whole picture if you posted a more complete code, or better yet, create a most minimal application that demonstrates what you are doing and then send your application to support [at] visualwebgui [dot] com (see my signature) with a link to this forum thread, along with some description about your approach.
Please also clean the solution before compressing it and reply to this post after sending, so we will know to check for your support request.
If connection to database is needed, please make sure you will either be using all memory based data or the MSSQL Northwind sample database for your connection(s) or preferably change your application to work without a database.
Remember to include information about what VWG version you are using, as well as you Visual Studio version+type and operating system version.
Palli