[SOLVED] TableLayoutPanel Fillweight Adding Rows

Answered Closed
0
0

I’ve implemented a FlowlayoutPanel which contains a TableLayoutPanel and a DataGridView. Both have FillWeight and MinSize. The FillWeight-Property itself is working but when I’m trying to add Rows to the Tlp things are getting curious.

I’ve attached an Example.

Best Regards

Corvin

 

  • You must to post comments
Best Answer
0
0

Hi Corvin,

issue was logged as WJ-7646 and is included in build 1.2.68

Best regards
Frank

  • You must to post comments
0
0

Hi Corvin,

I have been looking into this and was going in circles. But this is what I found:

  • When you add a new control in button1_Click the RowCount of tableLayoutPanel1 is reset to -1 because instead of using tableLayoutPanel1.RowCount you use dataGridView.RowCount – 1. But, after fixing this, we still have a problem.
  • The second issue is with the TableLayoutEngine and it’s being fixed. Its AutoSize and auto adding/assigning of row,col doesn’t work as it should.

I will keep you posted.

Thanks,

Luca

  • You must to post comments
0
0

Hi Corvin,

Is this the intended behavior?

http://www.screencast.com/t/o7Hwg6VNXl

The autosize of the tablepanel has been fixed. Additionally in the sample I added AutoSize=true to the table panel and flow panel otherwise they are fixed to the size set in the designer. Let me  know if the screencast shows the correct behavior.

Best,,

Luca

  • You must to post comments
0
0

Hello Luca,

great ! That’s the behavior i wanted to achieve. Will make some tests in the next days and will let you now about them.

Best Regards

Corvin

  • You must to post comments
Showing 4 results