需要帮助将项目添加到列表视图 [英] Need help adding items to listview

查看:74
本文介绍了需要帮助将项目添加到列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我是使用C#编程的新手.我正在尝试制作一个程序,该程序将允许用户向列表视图添加项目.例如,我有一个包含2列的列表视图.第一列是他们正在从事的项目的名称,第二列是他们在该项目上花费的小时数.因此,我试图确定是否让他们在一个文本框中输入项目名称,然后让他们在第二个文本框中输入小时数?然后以这种方式将它们添加到列表视图中.有没有更好的方法可以让用户输入项目并将其添加到列表视图中?我正在使用VS c#Express 2008

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

推荐答案

出于您的目的,我建议使用
For your purpose I would suggest to use Datagridview.[^]


希望 ^ ]会给您一个想法.
Hope this[^] will give you an idea.


这篇关于需要帮助将项目添加到列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆