Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enter Key Instead of Shift+Enter to Add a New Line in DataGridViewTextBoxColumn

Status
Not open for further replies.

Auguy

Programmer
May 1, 2004
1,206
US
Windows Form, VB.Net 2008. Is there any way to use the Enter key instead of Shift+Enter to add a new line in a DataGridViewTextBoxColumn with the DefaultCellStyle.WrapMode = DataGridViewTriState.True without sub classing anything? All the suggestions I've seen online require some sort of sub classing. This seems like such a normal thing to want to do and it works in a textbox outside of a grid. Am I missing something?



Auguy
Sylvania/Toledo Ohio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top