Pressing Enter in DataGridTextBox Column

  • Thread starter ramnadh_nalluri
  • 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
 
T

TT \(Tom Tempelaere\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top