List - Get the filtered datarow

2 posts, 0 answers
  1. Chris
    Chris avatar
    58 posts
    Member since:
    Oct 2015

    Posted 12 Jan 2016 Link to this post


    Is there have the built-in function to get the filtered data (filtered DataRows) before and after binding :

    Binding :

      private void list1_NeedDataSource(object sender, EventArgs e)
        System.Data.DataTable.datatable = dataset.Tables["table1"];
        list1.DataSource = datatable;

        private void list1_ItemDataBinding(object sender, EventArgs e)
          Telerik.Reporting.Processing.Table list = (Telerik.Reporting.Processing.Table)sender;
          DataTable NewTable = (DataTable)list.DataObject;
          foreach (DataRow LoopRow in NewTable.Rows)
    or I need to filter the datarows by myself then set the list1.DataSource ?

    Best regards

  2. Stef
    Stef avatar
    3611 posts

    Posted 14 Jan 2016 Link to this post

    Hi Chris,

    Filters can be specified in the report definition and data will be filtered automatically. Please check Filtering data.

    You can also use the data item's NeedDataSource event to set the data for the processing item - Using Report Events.

    Please check also my update in the Printing Across and then Down Multi-Column Report forum thread.

    Let us know if you have any further questions.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top