Ejemplo n.º 1
0
        public virtual void PopulateList()
        {
            try
            {
                FilterCriteria.Clear();
                AddSearchFilters();

                if (ListControl == null)
                {
                    throw new Exception("Populate list must be overridden when no static grid exists in the list container context.");
                }

                ListControl.DataSource = GetDataSource();
            }
            catch (Exception ex)
            {
                throw new Exception("Could not load or bind the list data source.", ex);
            }
        }