StringGrids and how to change column width???

This is a discussion on StringGrids and how to change column width??? within the C++ Programming forums, part of the General Programming Boards category; Does anyone now of a way to change the column width individually for stringgrids rather than using DefaultColWidth? I see ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    11

    Question StringGrids and how to change column width???

    Does anyone now of a way to change the column width individually for stringgrids rather than using DefaultColWidth?

    I see that there are two 2 "tools" GetColWidths and SetColWidths, but I have no idea how to use them and there is no clear examply in Borland's help. Any ideas you have would be helpful. It's not required for the program I am writing, but it would clean it up a bit. I already have ColCount set up for the array and I'm hoping to build off of that. Thanks!!!!

    Christina

  2. #2
    Davros
    Guest
    StringGrid1->ColWidths[n] = 50;

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    11

    Talking Thanks!!!

    It worked just fine! Thanks for your help!

    Christina

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21