如何将Gridview列中的数据显示为行 [英] How to display the data in coumns of Gridview as lines

查看:100
本文介绍了如何将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 the split function(Like Abhinav said) in your coding to handle the string dynamically


这篇关于如何将Gridview列中的数据显示为行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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