如何在运行时更改gridview值以显示数据 [英] how to change the gridview value at runtime to show data

查看:83
本文介绍了如何在运行时更改gridview值以显示数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请一些人告诉我如何在运行时更改gridview的值,就像在数据库表部门列中有值HR,IT,MD



但是我需要在运行时在gridview中显示数据,将人力资源转换为人力资源,IT转换为信息技术,将MD转换为总经理。





请pme spme告诉我如何将表colimn值更改为另一种方式,请任何人帮我解决这个....

Pls some one tell that how to change the value of gridview at run time, like in database table department column has the values HR, IT, MD

but i need to show data in gridview at run time which convert the HR to Human resource, IT to Information Technology and MD to Managing Director.


Pls spme one tell that how to change table colimn values to another way, Pls anyone help me to solve this....

推荐答案

你可以设置显示要显示给用户的名称的网格列的名称,并使用确切的列名称将该列与数据库列绑定。
you can set the display name of your grid column to the name you want to show to the user and use the exact column name to bind that column with the database column.


这篇关于如何在运行时更改gridview值以显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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