I have tried everything I know to get a textbox in a DataGridtextBoxColumn to word wrap, including setting wordwrap, multiline, alignment and scrollbars. Nothing works, I must be missing something.
Can anyone help.
Thanks
Dave
JR
Jim Rainville
July 24, 2003 11:48 AM
Did you ever get an answer or figure this problem out? I am currently struggling with the same thing. The problem seems to the that the textbox property is a read only property so you can't just do this:
dataGridTextBoxColumn.TextBox.WordWrap = true;
This will just get you a copy and set the word wrap property in that copy.
I understand the problem but a solution would sure be nice.
> I have tried everything I know to get a textbox in a DataGridtextBoxColumn to word wrap, including setting wordwrap, multiline, alignment and scrollbars. Nothing works, I must be missing something.
>
> Can anyone help.
>
> Thanks
>
> Dave
AD
Administrator
Syncfusion Team
January 10, 2004 03:45 PM
The following works find when the box is selected and the TextBox is created. Until the field is selected the text box does not exist.
DataGridTextBoxColumn nameColumnStyle =
new DataGridTextBoxColumn();
nameColumnStyle.TextBox.WordWrap=true;
> Did you ever get an answer or figure this problem out? I am currently struggling with the same thing. The problem seems to the that the textbox property is a read only property so you can't just do this:
>
> dataGridTextBoxColumn.TextBox.WordWrap = true;
>
> This will just get you a copy and set the word wrap property in that copy.
>
> I understand the problem but a solution would sure be nice.
>
>
> > I have tried everything I know to get a textbox in a DataGridtextBoxColumn to word wrap, including setting wordwrap, multiline, alignment and scrollbars. Nothing works, I must be missing something.
> >
> > Can anyone help.
> >
> > Thanks
> >
> > Dave
>
PA
Pam
March 24, 2004 12:43 PM
I ended up putting in the following code for each datagridcolumn that I wanted upper under the initialize component.
dataGridTextBoxColumn32.TextBox.CharacterCasing = CharacterCasing.Upper;
> Did you ever get an answer or figure this problem out? I am currently struggling with the same thing. The problem seems to the that the textbox property is a read only property so you can't just do this:
>
> dataGridTextBoxColumn.TextBox.WordWrap = true;
>
> This will just get you a copy and set the word wrap property in that copy.
>
> I understand the problem but a solution would sure be nice.
>
>
> > I have tried everything I know to get a textbox in a DataGridtextBoxColumn to word wrap, including setting wordwrap, multiline, alignment and scrollbars. Nothing works, I must be missing something.
> >
> > Can anyone help.
> >
> > Thanks
> >
> > Dave
>
PA
Pam
March 24, 2004 12:44 PM
Sorry I posted this answer to the wrong datagrid problem.
I ended up putting in the following code for each datagridcolumn that I wanted upper under the initialize component.
dataGridTextBoxColumn32.TextBox.CharacterCasing = CharacterCasing.Upper;
> Did you ever get an answer or figure this problem out? I am currently struggling with the same thing. The problem seems to the that the textbox property is a read only property so you can't just do this:
>
> dataGridTextBoxColumn.TextBox.WordWrap = true;
>
> This will just get you a copy and set the word wrap property in that copy.
>
> I understand the problem but a solution would sure be nice.
>
>
> > I have tried everything I know to get a textbox in a DataGridtextBoxColumn to word wrap, including setting wordwrap, multiline, alignment and scrollbars. Nothing works, I must be missing something.
> >
> > Can anyone help.
> >
> > Thanks
> >
> > Dave
>