how to rename the boundfield of a gridview in asp.net?
        Posted  
        
            by Akshay
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Akshay
        
        
        
        Published on 2010-03-18T16:07:21Z
        Indexed on 
            2010/03/18
            16:11 UTC
        
        
        Read the original article
        Hit count: 675
        
    protected void Button1_Click(object sender, EventArgs e)
    {
        System.Collections.ArrayList list = new System.Collections.ArrayList();
        list.Add("abc");
        list.Add("xyz");
        list.Add("pqr");
        list.Add("efg");
        GridView1.DataSource = list;
        GridView1.DataBind();
    }
Now when data is bound to the gridview the column name is by default "Items" but I want to change the header text of this column. How to do this..?
© Stack Overflow or respective owner