J
jareksmcp
Hello
I have got a datagrid control on window form. One of its column should
comprise long text (note) . Not too long. Let's say that 255
characters. But I want to allow users to press enter key in order to
add new line character. My idea is to override ProcessCmdKey and catch
processing of enter key. I can add character at the end of text object
of CurrentCell but ControlChars.NewLine just simply move cursor to the
begining of text not ot the begining of the new line. What am I doing
wrong?
Mayby another idea how to achieve this.
Personal remark:
As I remember VS.NET was suppoused to improve writing application. It
should be quicker, better and all of this. But in order to achieve just
a little of (let's say) Sybase PowerBuilder functionality I must write
a huge lines of code. There are problems with almost everything. I
can't use combo box in datagrid in simply way - I must write many lines
of codes. I don't even say about multicolumn combobox. Is there anybody
having the same feeling?
I have got a datagrid control on window form. One of its column should
comprise long text (note) . Not too long. Let's say that 255
characters. But I want to allow users to press enter key in order to
add new line character. My idea is to override ProcessCmdKey and catch
processing of enter key. I can add character at the end of text object
of CurrentCell but ControlChars.NewLine just simply move cursor to the
begining of text not ot the begining of the new line. What am I doing
wrong?
Mayby another idea how to achieve this.
Personal remark:
As I remember VS.NET was suppoused to improve writing application. It
should be quicker, better and all of this. But in order to achieve just
a little of (let's say) Sybase PowerBuilder functionality I must write
a huge lines of code. There are problems with almost everything. I
can't use combo box in datagrid in simply way - I must write many lines
of codes. I don't even say about multicolumn combobox. Is there anybody
having the same feeling?