This is a migrated thread and some comments may be shown as answers.

AUTOCOMPLETEBOX RETURNS "SYSTEM.DATA.DATAROWVIEW

1 Answer 36 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Farhan
Top achievements
Rank 1
Farhan asked on 08 Sep 2013, 08:17 AM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Sep 2013, 06:28 AM
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.
Tags
AutoCompleteBox
Asked by
Farhan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or