I\'m trying to add some specific behavior to a datagridview
control (if you can put it like that).
I would like to have a multiplelines
I am fairly confident you can achieve the desired results by changing a couple of properties in the DataGridView
and use a “Shift-Enter” instead of “Ctrl-Enter”.
In the DataGridView
set its AutoSizeRowsMode
to AllCells
, then set the particular COLUMNS DefaultCellStyle
-> WrapMode
to true. Then use a “Shift-Enter” while editing a cell and you should get multiple lines in a cell. Hope this is what you were looking for.