0

I am migrating an .NET application from .NET 4.5.1 to .NET 8.0 and I found out that these two things do not exist anymore. Are there any replacements for the ListViewGroups and ListViewItem.DataItemIndex?

listView.Groups.Add(new ListViewGroup());

listViewItem.Group = listViewName.Groups[variable];

I haven't found any kind of replacement at the moment.

1
  • Welcome. No such thing as ListViewItem.DataItemIndex in WinForms. That's WebControls thing. Please validate your tags. Commented Jun 18, 2024 at 15:27

1 Answer 1

0

The System.Web.UI namespace does not exist in any framework version after .NET framework 4.8.1.

Depending on what you're using the list view for, you probably will have to re-write that part of the code to use something else instead.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.