?
Solved

Listview And Location Of Last Inserted Item

Posted on 2002-07-25
2
Medium Priority
?
362 Views
Last Modified: 2008-03-03
How would I go about determining at what position the last item inserted into a listview is?

Also, Is there a way to determine how many rows are in a listview?

Thanks
Darrell
0
Comment
Question by:larockd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Expert Comment

by:PapaDanielle
ID: 7179258
Check out these links. I am very sure they'll help u.

http:www.c-sharpcorner.com

http://www.c-sharpcorner.com/Code/2002/July/EditableListView.asp


http://www.codeproject.com/csharp/


I'll be back. Gotta make some calls.
0
 
LVL 23

Accepted Solution

by:
naveenkohli earned 200 total points
ID: 7179959
When you add an item into ListView, the return value from Add method is ListItem. You can check the index of inserted item from Index property of the returned ListItem object.

ListView insertedItem = myListView.Items.Add(newItem);

int newIdx = insertedItem.Index;
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question