|
If the DefaultCellStyle.WrapMode of aDataGridViewTextBoxColumn is set to true, it will wrap bothlong lines AND lines separated by a newline. What I need is the behavior of a TextBox, when MultiLine is true but WordWrap is false. The textbox will then show the multiple lines, but NOT wrap text within a line. Characters that don't fit within the horizontal area of the textbox are clipped.
I understand that handling cell painting manually could accomplish the horizontal clipping, but I also need to resize the cell and row vertically to be sure that the start ofeach linewithin a cell isvisible. Is this possible and how? |