tableLayoutPanel bugs

i have an tableLayoutPanel on my form which CellBorderStyle property is set to "Inset". it takes seconds to render this panel. but if i set CellBorderStyle property to "None" it is many times faster. this must be a bug.

Another bug that tableLayoutPanel has is sometimes you cannot drag and drop controls in it, you have to edit Cell property. But becareful while editing, cause you cannot edit this property like width and height, it raises a meaningless error like '1,17 is not a valid value for Int32.'. you must edit sub properties Row and Column separately to do this.



Answer this question

tableLayoutPanel bugs

  • mgaur_MSFT

    How many rows/columns do you have in your TableLayoutPanel I see no noticable difference in painting speed when I set CellBorderStyle to Inset. I will be slower with Inset, but it should be noticable.

    The only time I've ever encountered 'x is not a valid value for Int32' is if I put "1,17" into the width or height sub-property of Size, instead of Size.



  • eralper

    Yep, 20x5 would be a not great for repaint speed. But, it does seem *extremely* slow when resizing with Inset. Maybe log a bug in the Product Feeback Center. I wouldn't suggest using the TableLayoutPanel for much more than 6x6.

    I cannot get the error with the Cell property either. I can if I enter "1,17" for the Row or Column sub-property; but that goes without saying.



  • KarthikT

    I can't get the error you've described; but it does look like there's something wrong there. If I go to a control in cell 1,17 and enter 1,16 the control actually goes to cell 2,16.

  • Steve B.

    Although I am responding to a thread that is over a year old, I had to add that I also noticed that painting of a TableLayoutPanel (C#) is exceeding slow (especially when resizing the form) when you set the CellBorderStyle to inset, or single. Actually it is so slow that it is basically un-usable. My table is only 9 columns and 11 rows and it takes 4-5 seconds to redraw a resized table and the on-screen flicker/movement is horrible.

    Courtney



  • KarlaK

    try directly editing row near "Cell" property in property window that writes ex: 1,17  and type 1,16 it raises error. i said it was possible for "Size" directly editing subproperties from main property.

    if you write separately row = 16 and column = 1 it is normal.

     


  • Bates

    20 rows 5 coloumns it has and full of controls in that cells it differs about 3 times.

    and i said "Cell" property of a control that is in tableLayoutPanel not "Size" property.


  • vahdam_mn

    I've logged bug FDBK48809 with respect to the Cell property problem.  If this problem is important to you, mark the bug as Can Validate and vote on how important the bug is.

  • tableLayoutPanel bugs