i want to display a multiline text in a datagrid
i try with a textbox and with a label
but with the textbox
<asp:textbox ID="textbox1" runat="server" style="overflow:hidden" Font-Size="15px" BackColor="#FFFFC0" TextMode="multiline" Width="750px" Wrap="true" borderstyle="None" BorderWidth="0" Text='<%# Databinder.Eval(Container.Dataitem,"text_caption") %>'></asp:textbox>
i receive only the first two lines
and with the label
<asp:Label ID="Label112" runat="server" BorderStyle="None" Width="750px" BorderWidth="0" Text=' <%# Databinder.Eval(Container.Dataitem,"text_caption").ToString.Replace(chr(13),"<br />") & "<br/>" & "<br/>" %>' ></asp:Label>
if the text is too big without an enter then the datagrid width becomes too big
although the text is diplayed normal with new lines
the textbox that i use to insert new text is here
<asp:TextBox ID="tbox_text_caption" runat="server" Height="232px"
Style="left: 400px; position: absolute; top: 8px" MaxLength="750" TextMode="MultiLine" Width="752px"
Wrap="true" TabIndex="5" BackColor="#FFE0C0"></asp:TextBox>
any idea for normal display?
i try with a textbox and with a label
but with the textbox
<asp:textbox ID="textbox1" runat="server" style="overflow:hidden" Font-Size="15px" BackColor="#FFFFC0" TextMode="multiline" Width="750px" Wrap="true" borderstyle="None" BorderWidth="0" Text='<%# Databinder.Eval(Container.Dataitem,"text_caption") %>'></asp:textbox>
i receive only the first two lines
and with the label
<asp:Label ID="Label112" runat="server" BorderStyle="None" Width="750px" BorderWidth="0" Text=' <%# Databinder.Eval(Container.Dataitem,"text_caption").ToString.Replace(chr(13),"<br />") & "<br/>" & "<br/>" %>' ></asp:Label>
if the text is too big without an enter then the datagrid width becomes too big
although the text is diplayed normal with new lines
the textbox that i use to insert new text is here
<asp:TextBox ID="tbox_text_caption" runat="server" Height="232px"
Style="left: 400px; position: absolute; top: 8px" MaxLength="750" TextMode="MultiLine" Width="752px"
Wrap="true" TabIndex="5" BackColor="#FFE0C0"></asp:TextBox>
any idea for normal display?