2014年7月13日 星期日

[RESOLVED] Multiline within DetailsView


How do I set a multiline option for the detailsview? I know this can be done on a textbox, but I haven’t done this within a detailsview


below is an example of a normal textbox... but it work withing a details view


 


            DataSourceID="SqlDataSource1" Text='<%# Eval("NOTES") %>'>



If you have worked detailsview with boundfield, edit the field in design mode. Convert boundfield to templatefield, after finish you will get textbox in insert / edit itemtemplate. You can change textbox property TextMode="multiline".

this is how the current textbox is created... how do i set it to TextMode?



<asp:BoundField
DataField="Notes"
HeaderText="Notes:"



/>














沒有留言:

張貼留言