在TextBox中显示多行 [英] Display Multiple Rows in TextBox
问题描述
大家好,
如何在一个textBox中显示多个数据库行?
textBox绑定到Database表并且应该显示3个数据库值。
但它只显示一个。
如何连接表行?
例如我的表有3行具有相同的ID,并希望它们都显示在textBox中...
myField ID
---------- ------- ---------------
itemA 2
itemB 2
itemC 2
谢谢。
Hi all,
How do I display multiple database rows in the one textBox?
The textBox is bound to the Database table and should display 3 database values.
However it displays only one.
How do I join table rows??
e.g. My table has 3 rows with same ID and want them all displayed in textBox...
myField ID
----------------- ---------------
itemA 2
itemB 2
itemC 2
thanks.
推荐答案
大家好,
如何在一个textBox中显示多个数据库行?
textBox绑定到Database表,应该显示3个数据库值。 br />
但它只显示一个。
如何连接表格行?
例如我的表有3行具有相同的ID,并希望它们都显示在textBox中...
myField ID
---------- ------- ---------------
itemA 2
itemB 2
itemC 2
谢谢。
Hi all,
How do I display multiple database rows in the one textBox?
The textBox is bound to the Database table and should display 3 database values.
However it displays only one.
How do I join table rows??
e.g. My table has 3 rows with same ID and want them all displayed in textBox...
myField ID
----------------- ---------------
itemA 2
itemB 2
itemC 2
thanks.
设置多行" TextBox的属性为true。然后你可以显示你想要的任何东西。
或者您可以使用RichTextBox。
Set the "Multiline" property of the TextBox to true. Then you can display whatever you want.
Or you could use a RichTextBox instead.
TriedMultiline但没有区别。
textBox绑定到数据集,但只显示一行。
Tried "Multiline" but no difference.
The textBox is bound to a dataset but only one row is displayed in it.
尝试多线但没有区别。
textBox绑定到数据集,但只显示一行。
Tried "Multiline" but no difference.
The textBox is bound to a dataset but only one row is displayed in it.
嗯,从未以这种方式使用过TextBox。您是否尝试过查看RichTextBox的行为?
Hmmm, never used a TextBox in that way. Have you tried to see how the RichTextBox behaves?
这篇关于在TextBox中显示多行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!