How to change GridView HeaderText? I have been looking for this solution for days. Finally, I got the answer. Yeah… ![]()
Here is the code…
GridView01.Columns[0].HeaderText = “HeaderName”;
This will change the GridView’s first column to “HeaderName”.
Tags: ASP.NET, GridView, HeaderText
4 Responses
wah00
October 12th, 2008 at 10:32 pm
1thanks. finally i get the idea. but i changed the code a bit to makes it works with my gridview.
gvprogdetail.HeaderRow.Cells[3].Text = “Header name”;
i only want changes at header row, of cells no.3
Jayce
October 12th, 2008 at 11:07 pm
2FYI. With your code, you cannot sort your header anymore. I tried that before.
wah00
October 13th, 2008 at 10:11 am
3yup its. true. i only want to insert ddlist on the item. so no need to sort..
Jayce
October 13th, 2008 at 10:15 am
4Good then.
RSS feed for comments on this post · TrackBack URI
Leave a reply
Categories
Archives
Chat Chat Chat...
SP Blogger
Isabell Online Penang Florist