I am working on a GUI and I have a table where there will be multiple lines in the cells of the table.
I found the following example but it has a problem because it assumes the maximum number of lines in each row will be equal (In this example, it is 3.). However, in my case, each row has different number of lines.
If you look at the screenshot in this example, each row has 3 lines in at least one cell in a row. This makes the problem invisible in this example, but if you have 3 lines in one row and 50 lines in the other row, this code makes each row with 50 lines. and it looks weird because the row that has one line has so many empty lines.
Can you please help me to fix this problem in this code, so that I can implement the same logic in my code?