AUTOCOMPLETEBOX RETURNS "SYSTEM.DATA.DATAROWVIEW

2 posts, 0 answers
  1. Farhan
    Farhan avatar
    1 posts
    Member since:
    Aug 2013

    Posted 08 Sep 2013 Link to this post

    hi, I just used radautocomplete box, it works fine but returns record as "System.data.datarowview". Can you please let me know why this is happening? thank you
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 Sep 2013 Link to this post

    Hi Farhan,

    Such an issue can happen when the DataTextField property of the RadAutoCompleteBox is not set. Please revise your code accordingly to address the problem. Also please have a look at the sample code I tried which works fine at my end.

    ASPX:
    <telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" runat="server" DropDownHeight="150px"
        Skin="Default" DataSourceID="SqlDataSource1" DataTextField="ContactName" DropDownWidth="200px"
        InputType="Text">
    </telerik:RadAutoCompleteBox>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        SelectCommand="select ContactName from [Customers]"></asp:SqlDataSource>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top