Autosize don't work inside datagridview

Answered
0
0

Hi,

why the autosize feature don’t work if the control is inside a cell of datagridview?

is it possibile to fix it?

and the anchor don’t work inside cell?

I upload a sample

Regards

Cristian

  • You must to post comments
Best Answer
0
0

Thank you for the sample.

Anchoring is currently not supported when hosted in a cell since there is no parent and the layout is managed by the client.

Docking is supported and works well.

AutoSize doesn’t seem to work because controls hosted in cells don’t have a parent. Will add a ticket. You can resolve it simply by adding Me.Size = Me.PreferredSize when you want the panel to autosize.

HTH

  • Cristian Zerbinati
    ok no problem, yes, I had seen the property PreferredSize :-) thank you Cristian
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.