Results 1 to 2 of 2

Thread: DataGrid textbox question

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    DataGrid textbox question

    Im getting a strange error on this line

    VB Code:
    1. <asp:TemplateColumn HeaderText="Beskrivning">
    2. <ItemTemplate>
    3. <asp:TextBox id="TextBox4" runat="server" TextMode="MultiLine" Rows="2" Text='<%# DataBinder.Eval(Container.DataItem("beskrivning")) %>'>
    4. </asp:TextBox></ItemTemplate>
    It says:

    "BC30516: Overload resolution failed because no accessible 'Eval' accepts this number of arguments."

    Im just binding by dataset to the gridna dn fetching data to the textbox using the databind expression... I see no reason why it shouldn't work

    kind regards
    Henrik

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    try
    VB Code:
    1. Text='<%#Databinder.Eval(Container.DataItem,"beskrivning")
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width