Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

DataGridViewComboBoxColumn doesn't work with AutoSizeRowsMode AllCells

$
0
0

I created a test app where I simply added DataGridView. Added one DataGridViewComboBoxColumn and on DataGridViewTextBoxColumn.

I set AutoSizeRowsMode = AllCells and I also set WrapMode = True for box ComboBox and TextBox columns.

 

Now if I type very a long text into text column grid row will automatically resize, but if I select a very long item from combox box, row will not resize (even though you can see that text is wrapping to the next line). It actually looks a little bit strange, because you can see first row and a few pixels of the second row. I would like a row to resize for combobox too.

I also tried setting DisplayStyle = Nothing, but it didn't seem to help.

 


Thanks,

Victor - Software Developer
TeamLook - TFS Outlook Addin , TeamSpec - TFS Word Addin


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>