Click here to Skip to main content
15,902,275 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a database table it contains:
username,fathername,user_nic,user_email
i have a grid view. i want that grid view takes information of those user who have yahoo email id. and i want to change the header text of gridview also. please tell me how is it possible.
thanks in advance
Posted

To change the Header Text of Gridview

Option 1 :

In the SQl Query, you will use the alias names for sql Columns

Ex:
SQL
Select Email_ID as 'Email ID' from tablename


Option 2:

Change the HeaderText in Gridview_prerender Event
 
Share this answer
 
v2
Hi,

1) To Show user Only with yahoo id...?
for that you can Write Sql Query in that way

SQL
Select * from Table where email_id like '%yahoo.com%'


2)To change grid View Header Text....

http://forums.asp.net/t/996470.aspx/1[]
 
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