Pressing Enter in DataGridTextBox Column

  • Thread starter Thread starter ramnadh_nalluri
  • Start date Start date
R

ramnadh_nalluri

Hi,

I had written a TextBox Column by extending the DataGridTextBoxColumn.
I need to enable a feature in the TextBoxColumn. The feature is to
allow the multiline in the textbox column. So i kept the multiline ,
wordwrap,scrollbars properties of the textbox to true. It's working
fine. I handled the increasing of the row height by using reflection.
But the problem is that i kept the AcceptsReturn property to true. the
new line doesn't create when i clicked the enter in the textbox of the
textboxcolumn. Can anyone please suggest me how can i enable the enter
in the DataGridTextBoxColumn....so that when i press enter or return
key it should create a new line. Suggest me

thanx in advance.

ramnadh
 
Hi ramnadh,

Hi,

I had written a TextBox Column by extending the DataGridTextBoxColumn.
I need to enable a feature in the TextBoxColumn. The feature is to
allow the multiline in the textbox column. So i kept the multiline ,
wordwrap,scrollbars properties of the textbox to true. It's working
fine. I handled the increasing of the row height by using reflection.
But the problem is that i kept the AcceptsReturn property to true. the
new line doesn't create when i clicked the enter in the textbox of the
textboxcolumn. Can anyone please suggest me how can i enable the enter
in the DataGridTextBoxColumn....so that when i press enter or return
key it should create a new line. Suggest me

thanx in advance.
ramnadh

Take a look at this:
http://www.knowdotnet.com/freedownloads.html

and have a look at the KDNGrid. It has an implementation of a multi line
text box column (VB).

Kind regards,
Tom T.
 
Back
Top