If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

[RESOLVED] ListView Group Display Problem at run-time

Hello,

I've come across a really weird problem. I was trying to see the groups in my application, but it didn't seems to work at run-time. So, I stated to develop my control in a test application. Everything works fine. So, I've tried again since I was a lot better with the control and it still doesn't work.

So, when I'm in the designer, I add group, add items and we can see them fine. But as soon as I run the application, I loose all the grouping. I've put a screenshot in attachment.

So, I was wondering what can cause that? I've tried to search information on the net, but didn't found anything? Any idea would be welcome. It's probably a setting in my project, a reference or something like that, but I've looked at everything and didn't find any anomaly.

Re: ListView Group Display Problem at run-time

Hahaha, looks like posting made me thought about the problem. I'm under XNA and I'm making an editor. I just remember I had to put the attribute STAThread. So, after comparing the 2 program.cs, I found out that there was a missing line that 6-7 month ago didn't made sense to me, but now reading it, make all the sense in the world: