TextArea

Discussion in 'ASP .Net Datagrid Control' started by Barnabas Yohannes, Feb 26, 2004.

  1. Is it possible to create a TextArea Item Template inside a datagrid? If so, how?
     
    Barnabas Yohannes, Feb 26, 2004
    #1
    1. Advertising

  2. > Is it possible to create a TextArea Item Template inside a datagrid? If
    so, how?

    Sure.

    <asp:DataGrid ...>
    <Columns>
    <asp:TemplateColumn>
    <ItemTemplate>
    <asp:TextBox runat="server" TextMode="Multiline"
    Text='<%# DataBinder.Eval(Container.DataItem,
    "SomeColumnName") %>'></asp:TextBox>
    </ItemTemplate>
    </asp:TemplateColumn>
    </Columns>
    </asp:DataGrid>

    Happy Programming!

    --

    <shameless plug>
    For more information on the DataGrid, DataList, and Repeater controls,
    consider picking up a copy of my latest book:

    ASP.NET Data Web Controls
    http://www.amazon.com/exec/obidos/ASIN/0672325012/4guysfromrollaco
    </shameless plug>

    Happy Programming!

    Scott Mitchell

    http://www.4GuysFromRolla.com
    http://www.ASPFAQs.com
    http://www.ASPMessageboard.com

    * When you think ASP, think 4GuysFromRolla.com!
     
    Scott Mitchell [MVP], Feb 26, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bei

    msword-like textarea?

    Bei, Jun 25, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    1,248
    mike C.
    Jul 2, 2003
  2. Replies:
    3
    Views:
    784
    Justin Lovell
    Oct 5, 2003
  3. Augustus
    Replies:
    1
    Views:
    362
    Ken Schaefer
    Sep 10, 2003
  4. Textarea Inside of a textarea

    , Feb 4, 2006, in forum: ASP General
    Replies:
    6
    Views:
    337
    Anthony Jones
    Feb 5, 2006
  5. Replies:
    1
    Views:
    319
    Bart Van der Donck
    Jul 4, 2007
Loading...

Share This Page