changing header texts of GridView RRS feed

  • Question

  • I want to change the Header Text using code. I have bounded that gridview with a database programatically and the header text reads all the fields of database in an expected way. So is there any way, so that I can actually rename the Column header.

    I think if I have bounded the datagridview not using the code, and if I'd have used the smart tag, then I could do that using "Edit Columns".


    p.s. : I am working on a windows application.

    Friday, December 23, 2011 4:40 AM


  • try  using 

    dataGridView2.Columns[0].HeaderCell.Value = "Name"

    • Proposed as answer by Bob Wu-MT Friday, December 23, 2011 7:59 AM
    • Marked as answer by Aarsh (MCTS) Friday, December 23, 2011 2:13 PM
    Friday, December 23, 2011 6:18 AM

All replies