How can i use indexer to bind data?
I have class:
How can i user indexer ReportItem[columnName] to bind Data in report?
  public class ReportItem
    {
        private List<ItemData> Data { get; set; }
        public DateTime Date { get; set; }
        public double? this[string key]
        {
            get
            {
                return (from item in Data
                        where item.Tag.Code.ToLower().Equals(key.ToLower())
                        select item.Value).FirstOrDefault();
            }
        }
        public ReportItem(DateTime date, List<ItemData> data)
        {
            Date = date;
            Data = data;
        }
    }
How can i user indexer ReportItem[columnName] to bind Data in report?
Comments
You should provide an IEnumerable instance to the RegisterData method in order to use it in a report.