Multi-sheeted rows in a cell in a data view

Im using C # .net .. in that im works with a windows form application

I have a datagrid view with two columns. the first column is read-only and the other is editable. now I want each cell of the second column to support the mulitilins in each cell. I want to press enter and go to the next line in the same cell. But now, if I press the enter button, it will go to the next cell below it. I want the cursor to be in the next row of the same cell

+5
source share
1 answer

Perhaps you can:

  • KeyDown event binding
  • check if Enter was pressed if true:
  • :
  • , e.SuppressKeyPress True
+1

All Articles