Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Filtering on Custom Binded Columns
posted

Hello there.

Sorry if this question has already been asked but my searches did not returned any answers.

My problem is the following.

I have a data source which returns three database fields . Because I need to display these fields as one grid column I have a method on the page which fires on every row to format the column.

 <ig:TemplateDataField Key="course">
                <ItemTemplate>
                    <asp:Label ID="Label1" Text='<%#FormatCourse(Eval("CourseName"),Eval("CourseYear"),Eval("ClassName")) %>' runat="server"></asp:Label>
                </ItemTemplate>
                <Header Text="Course" />
            </ig:TemplateDataField>

 

My problem is that I need to allow the user to filter and sort this column.

How can I accomplish this?

thanks

adasilva

Parents
No Data
Reply
  • 33839
    Suggested Answer
    posted

    HI adasilva,

    I'm not even sure how you would filter and sort on a column that is made up of three distinct columns.  What you will need to do is have hidden BoundDataFields bound to the actual data.  Then you can sort and filter those columns.  But beware that the Templated column will not show up an UI or sort/filter indicator.  You would have to do that custom.

    regards,

    David Young 

Children
No Data