Thread: StringGrids and how to change column width???

  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