CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    Québec (Canada)
    Posts
    210

    How can I change Title for each columns in DBGrid

    Do you know how can I change column title in DBGrid. I try with DBGrig1.Columns(1).Title = "New" but I received this error "Object doesn't support this property or method"

    Who can help me.
    Thanks.
    Redg


  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: How can I change Title for each columns in DBGrid

    The Property you want is Caption, not Title, ie.

    DBGrid1.Columns(1).Caption = "New"

    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured