Click here to Skip to main content
16,015,414 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I'm pretty new to programming in c#. I'm trying to make a program that will allow the user to add items to a listview. For example, I have a listview with 2 columns. First column is the name of the project they are working on and second column is number of hours they've spent working on the project. So, I'm trying to figure out if I should have them enter the project name into a text box then have them enter the number of hours into a second text box? Then add them into the listview that way. Is there a better way that I could have the user enter the items and add them into the listview? I'm using VS c# Express 2008
Posted

For your purpose I would suggest to use Datagridview.[^]
 
Share this answer
 
Hope this[^] will give you an idea.
 
Share this answer
 
Comments
CathyT 18-Jan-11 5:03am    
Thanks for the quick reply but I know how to add an item if I already know exactly what the names of the projects and time spent on the project were. I'm just not exactly sure how to get the user to enter the information. Should I just have them enter both pieces of info into a text box then parse out the two parts and add them to the listview or if I should have them enter the information separately into text boxes then add them to the listview. I'm wondering if there is a better or easier way to have the user enter the information.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900