格式化GridView单元格数据 [英] Formating of GridView Cell Data

查看:74
本文介绍了格式化GridView单元格数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...
我的问题是我的Grid包含一列,没有关键字用逗号分隔...
我的问题是,如果关键字"列当时不包含任何关键字,则网格宽度会扩展为长像素,因为关键字列中没有空格...

为此,我在BoundFiled中看到了dataFormatString属性,但我找不到解决方案请帮我...

Hi...
My problem is my Grid contains a column with no keywords separated with commas...
My problem is if the Keyword column contains large no keywords at that time the grid width expands to long coz my there is no spaces in keyword column...

for this i saw dataFormatString property in BoundFiled but i can''t find solution pls help me...

推荐答案

您需要在逗号后添加空格( ,)
例如ComputerEngineer,SoftwareEngineer,BusinessAdministrator

谢谢,
Imdadhusen
You need to add Space after Comma(,)
e.g. ComputerEngineer, SoftwareEngineer, BusinessAdministrator

Thanks,
Imdadhusen


我解决了这个问题....

我将总列数据分为字符串数组
我在逗号(,)
I solved the problem ....

I split the total column data into string array
and i add space after Comma(,)


这篇关于格式化GridView单元格数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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