about datagridview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • minaldukestar
    New Member
    • Sep 2007
    • 1

    about datagridview

    How to change column header name of datagridview?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by minaldukestar
    How to change column header name of datagridview?
    Did you read the title of the very first post in this section? I guess not; you
    posted your question in the .NET Articles section. It doesn't belong there; it
    belongs in the .NET Forums section. I'll move your question to that forum.

    kind regards,

    Jos

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      If this is bound to a datasource, then you will have to change it in the datasource.
      If you're populating it manually, just name it whatever you want. It's a property of the column (I believe)

      Comment

      • Sakalicek
        New Member
        • Mar 2007
        • 51

        #4
        Or there is a chance to FindControl in code.
        Create some GUI object and than set its property Footer...

        Originally posted by Plater
        If this is bound to a datasource, then you will have to change it in the datasource.
        If you're populating it manually, just name it whatever you want. It's a property of the column (I believe)

        Comment

        • Shashi Sadasivan
          Recognized Expert Top Contributor
          • Aug 2007
          • 1435

          #5
          I believe with the edit colums properties of the gridview you can change the column header if its already bound to

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            This is a windows application yes? Since DataGridView is a windows control (as opposed to GridView which is a web control)

            Comment

            Working...