I need to tune parameters of elements in the specific way but there's some cunning trick logic, which I can't implement yet.
Let me please draw a picture. On this picture black border is the Window's border, blue lines mean Grid, and yellow ones mean Textboxes which are taking all free space of cells.