StringGrid - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

StringGrid

tj29tj29 Posts: 45Member
Hi,
I place a string grid in a form. I selected anchors akleft and akright. when i resize the form the grid component also resize with the form. but the actual grid remains intact. how can i also make the grid resize not just the outer part of the component.

any suggestions or help are appreciated thank you.

Comments

  • zibadianzibadian Posts: 6,349Member
    : Hi,
    : I place a string grid in a form. I selected anchors akleft and akright. when i resize the form the grid component also resize with the form. but the actual grid remains intact. how can i also make the grid resize not just the outer part of the component.
    :
    : any suggestions or help are appreciated thank you.
    :
    For this you need to use the OnResize() event. In there you can calculate the ColWidths and RowHeights of the cells, or calculate the RowCount and ColCount. The helpfiles contain more info on the event and properties.
Sign In or Register to comment.