CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2003
    Posts
    11

    How can I change the color of one column in a DataGrid (header)?

    Hi!

    Can somebody tell me, how can I change the color of
    one column header (or the whole column) to an another one,
    e.g. red?
    I would also like to do it bold. How can I set the Format properties
    of specified columns?

    Thanks for answers!
    @mars2

  2. #2
    Join Date
    Jun 2003
    Location
    Malaysia (P.J)
    Posts
    410
    As far as I know, there isn't a direct way. U can still manage to do it by including a component class and inhertting the datagrid to access the protected members...

    Need the code?
    Back after a long hibernation.

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