protected void storeSPClientChannelSettingFilters_Refresh(object sender, StoreRefreshDataEventArgs e)
        {
            int    recordCount   = 0;
            string sortFieldName = "";

            if (e.Sort != null)
            {
                sortFieldName = e.Sort;
            }

            int startIndex = 0;

            if (e.Start > -1)
            {
                startIndex = e.Start;
            }

            int limit = this.PagingToolBar1.PageSize;

            int pageIndex = 1;

            if ((startIndex % limit) == 0)
            {
                pageIndex = startIndex / limit + 1;
            }
            else
            {
                pageIndex = startIndex / limit;
            }


            List <SPClientChannelSettingFiltersWrapper> datas;

            if (ChannleClientID > 0)
            {
                datas = SPClientChannelSettingFiltersWrapper.FindAllByOrderByAndFilterAndClientChannelSettingID(sortFieldName, (e.Dir == SortDirection.DESC), pageIndex, limit, SPClientChannelSettingWrapper.FindById(ChannleClientID), out recordCount);
            }
            else
            {
                datas = SPClientChannelSettingFiltersWrapper.FindAllByOrderBy(sortFieldName, (e.Dir == SortDirection.DESC), pageIndex, limit, out recordCount);
            }


            storeSPClientChannelSettingFilters.DataSource = datas;
            e.TotalCount = recordCount;

            storeSPClientChannelSettingFilters.DataBind();
        }