Click here to Skip to main content
15,922,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

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..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900