移动号码检索抛出数据库到gridview [英] Mobile number retrieving throw database to gridview

查看:57
本文介绍了移动号码检索抛出数据库到gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我已经将手机号码的数据类型作为bigint,现在当重复数据到gridview时,如果该列中没有数据,它将会显示0,我需要显示 - 默认情况下符号而不更改数据库。同样适用于电子邮件的东西?



提前谢谢。

Dear Friends,

I have given datatype for mobile number as bigint, now when repetitive the data to gridview if don't have data in that column it will show 0, I need to display - symbol by default without changing database. same thing as applicable for email also?

Thanks in advance.

推荐答案

使用GridView.RowDataBound Event [ ^ ]。在那里,检查所需的单元格数据(例如单元格[0])如果是空白,则相应地更改值。



问候..
Use GridView.RowDataBound Event[^]. In there, check for the required cells data(e.g. cells[0]) And if its blank, change the value accordingly.

Regards..


这篇关于移动号码检索抛出数据库到gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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