如何将Gridview列中的数据显示为行
问题描述:
大家好,
查询:假设我在Gridview的一栏中写了一个句子,让我们假设该句子有50个单词.现在我想在该列中每行显示10个单词.
Hi all,
Query: Suppose i have written a sentence in one column of Gridview ,let us assume that sentence has 50 words.Now I want to display 10 words per line in that column.
答
String.split
可以帮助您实现此 [
String.split
can help yo achieve this[^].
很久以前我已经回答了类似的问题,请参见我的回答
如何制作标签多行-(在gridview列中) [ ^ ]
DataGridView多行单元格. [在GridView中包装连续文本 [
Already I have answered similar question long time ago, please see my answers
How to make label multiline - (inside gridview column)[^]
DataGridView multiline cell.[^]
Wrap Continuous Text in GridView[^]
Use thesplit
function(Like Abhinav said) in your coding to handle the string dynamically