发新话题
打印

【已解决】DBGrid 中 字段名称和 内容 均可显示中文

【已解决】DBGrid 中 字段名称和 内容 均可显示中文

DBGrid 中 字段名称和 内容 均可显示中文
奇怪的是
在 maxthon 和 ie 中不能显示 ,但是在 firefox 中能够 正常显示
把fire fox 的 字符编码设置为  gb2312。
这里表有 两个中文字段 就是后面两个 ,数据库是 interbase2007  8.1.0.257

附图如下已解决

[ 本帖最后由 chinacodegear 于 2008-5-26 22:08 编辑 ]
附件: 您所在的用户组无法下载或查看附件
我必安然躺下睡觉,因为独有你耶和华使我安然居住。
I will both lay me down in peace, and sleep: for thou, LORD, only makest me dwell in safety.

TOP

【转贴】

来自 http://bbs.codegear-cn.com/viewt ... &extra=page%3D1
大家最好不要使用中文字段名
那完全是给自己找麻烦。

http://codegear-cn.com/DEMO/PHP/ ... x_events/dbgrid.htm
你们可以通过上面那个例子学会如何将英文字段名改成中文。
很简单的。

其实,我个人认为,在Web方式里面,DBGrid的用处还没有DBRepeater使用的广泛呢。
大家完全可以使用DBRepeater来实现各种和数据库有关的列表,非常方便。
我必安然躺下睡觉,因为独有你耶和华使我安然居住。
I will both lay me down in peace, and sleep: for thou, LORD, only makest me dwell in safety.

TOP

发新话题