Last post Apr 02, 2012 04:06 AM by Ashutosh Pathak
Apr 02, 2012 01:46 AM|Rishi7|LINK
My Textbox is bound to datacolumn in datatable which returns value for ex- "abc \n def" , but the textbox instead of showing def in second line just diplays "abc def".
Textbox property "allow height to increase is set to true". If i try to type manually and press enter directly in the designer window it works.
Even if i append vbCrLf in the expression just to test it doesn't come up as second line.
Apr 02, 2012 01:56 AM|d4daud|LINK
You have to put System.Environment.NewLine in the string,
so your excpression will look something like
= Fields!MyField1.Value + System.Environment.NewLine + Fields!MyField2
Apr 02, 2012 01:56 AM|Basquiat|LINK
Apr 02, 2012 04:06 AM|Ashutosh Pathak|LINK
you need to set the textbox CanGrow property also. more info refer link here: