Reputation: 169
I use GridView in my C# application, and the cell seems too small.
I find the prop of GridView, but I find nothing about it. How can I display all text in Cell?
Upvotes: 0
Views: 876
Reputation: 9322
Under Columns
Collection property there is AutoSizeMode
under Layout
. And use for example DisplayedCells
and see for yourself.
For Word Wrap
you could set it programmatically like:
// Columns[1] for 2nd column based on your example.
dataGridView.Columns[1].DefaultCellStyle.WrapMode = DataGridViewTriState.true;
But don't set the AutoSizeMode
as above or else the columns will still expand.
You could set it also manually under Columns
Collection property and under Appearance
select Default Cell Style
and then set WrapMode
to true.
Upvotes: 1