TableLayoutPanel Fillweight Adding Rows

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
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
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

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
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

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
Showing 4 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 1, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json