Example #1
0
    private void ShowHeritage()
    {
        SqlDataAccessLayer DBLayer = new SqlDataAccessLayer();

        using (DataSet ds = DBLayer.GetChunkHeritage(SessionState.User.Id, itemId, containerId, cultureCode))
        {
            dg.DataSource = ds;

            // Allow paging
            Utils.InitGridSort(ref dg, false);
            dg.DataBind();

            // Disable sorting
            dg.DisplayLayout.HeaderClickActionDefault = Infragistics.WebUI.UltraWebGrid.HeaderClickAction.NotSet;
            dg.DisplayLayout.AllowSortingDefault      = Infragistics.WebUI.UltraWebGrid.AllowSorting.No;

            // hide fallback column
            dg.Columns.FromKey("Culture").Hidden = (SessionState.Culture.Type == HyperCatalog.Business.CultureType.Master);
        }
    }