Error when filtering

3 posts, 0 answers
  1. KawaUser
    KawaUser avatar
    57 posts
    Member since:
    Oct 2010

    Posted 19 Oct 2011 Link to this post

    I get this error when I try to filter on the first column in my grid:

    is neither a DataColumn nor a DataRelation for table DefaultView.

    <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" HeaderText="PO #" Visible="true">
     <ItemTemplate>
    <asp:Label ID="lblPONumber" Text='<%# Eval("_PONumber") %>' runat="server">
    </
    asp:Label>
    </
    ItemTemplate>
    <HeaderStyle HorizontalAlign="Center" />
    </telerik:GridTemplateColumn>

    I am not sure what to give you so I am giving you the ASPX for the first column. 
    Any ideas on why this error is occurring?

    Thanks,
    Chuck

  2. Elliott
    Elliott avatar
    391 posts
    Member since:
    May 2010

    Posted 19 Oct 2011 Link to this post

    are you missing a UniqueName for the column?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 19 Oct 2011 Link to this post

    Hello,

    please set DataField

    <telerik:GridTemplateColumn DataField="_PONumber"


    Thanks,
    Jayesh Goyani
Back to Top