将数据库文本字段追加到列表视图? [英] Append Database Text field to listview?
问题描述
有很多展示如何用数据库表中的所有数据填充列表视图,但是我的问题是是否可以在表的一个字段中附加文本以填充列表视图的两列?
例如,如果我要创建一个名为Appearance的简单数据库表,并且在该表的第一个字段中有(LongHair,BlueEyes)
如何在我的列表视图的头发长度"列中添加LongHair,并在眼睛颜色"列中添加BlueEyes?
如果可以的话,我将使用数据库格式,但是如果有一种更简单的方法,可以将一个字段及其对应的字段添加到右侧,并将每个表字段添加到我非常想知道的列表视图中.
顺便说一句,我正在使用访问数据库来学习!.
There have been many to show how to fill a listview with all the data from a database table but my question is if it''s possible to append text in one field from a table to fill in two columns of a listview?
for example if I was to make a simple database table called Appearance and in the first field of that table I have (LongHair,BlueEyes)
How can I add LongHair to the hair Length column and BlueEyes to the Eye color column of my listview?
If this is possible I will work on my database format but if there is a easier way to take a field and its corresponding field to the right and add each tables field to the listview I would greatly like to know.
btw im using access database to learn from!.
推荐答案
您可以根据选择的字段生成数据库表.
可以通过代码创建/修改表.
此处 [
You can generate a database table based on the fields you choose.
A table can be created / modified via code.
Here[^] is a simple example.
这篇关于将数据库文本字段追加到列表视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!