导入.txt到ListView多列 [英] Importing .txt to listview multi column

查看:96
本文介绍了导入.txt到ListView多列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在列出包含商品和ID的列表,我想将包含商品和ID的文本文件导入到每一列中. .txt的设置类似于

I am making a list with Items and ID''s, and I want to import the text file containing the Items and ID''s into each column. The .txt is set up like

Item_Name ID

,其中它们之间用空格分隔.

where they''re separated by a space. How can I push the ID''s into the second column?

推荐答案

您到目前为止尝试了什么?您将需要加载文件.你能做到吗?您将需要以某种方式拆分数据.你有尝试过什么吗?您知道如何对列表视图进行数据绑定吗?至少没有这些信息,我们真的无法为您做很多事情.
What have you tried so far. You will need to load the file. Can you do that? You will need to split the data somehow. Have you tried anything with that? Do you know how to databind a listview? Without some of this information at the very least we can''t really do a whole lot for you.


这篇关于导入.txt到ListView多列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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