My question is simple, but I can not think of an easy solution. Lets say I have a DataGridViewTextBoxColumn. How can I make it break text into several lines if it is too long to be shown in one line?
My question is simple, but I can not think of an easy solution. Lets
Share
You need to create a new
DataGridViewCellStyleclass with theWrapModeproperty set to “True”, and assign this to theDefaultCellStyleproperty of yourDataGridViewTextBoxColumn.For example: