PDF Export - Showing Capacity and Count in the header

4 posts, 0 answers
  1. Vivek
    Vivek avatar
    38 posts
    Member since:
    Mar 2013

    Posted 29 May 2013 Link to this post


    I'm using arraylist for my wrapper grid to bind the child grids in order to export pdf but data is getting exported in  pdf file with two header items "Capacity" and "Count", not sure from where these are coming.

                ArrayList arrayList = new ArrayList();
                arrayList.Insert(0, Performance.GetPerformanceData1());
                arrayList.Insert(1, Performance.GetPerformanceData2());

                RadGridWrapper.DataSource = arrayList;

    I strongly believe ArrayList is creating problem with radgrid, please check and let me know the solution for that as I need to use ArrayList.

    Attaching the snap shot for your reference, please have a look.

  2. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 29 May 2013 Link to this post

    Please disable the AutoGenerateColumns property on the RadGrid and manually set up the columns using either the designer, ASPX, or via the CodeBehind.

  3. Vivek
    Vivek avatar
    38 posts
    Member since:
    Mar 2013

    Posted 31 May 2013 Link to this post

    Issue still persist, please let me know if you have any other solution.
  4. Daniel
    Daniel avatar
    4949 posts

    Posted 03 Jun 2013 Link to this post

    Hello Vivek,

    You can hide the header item as shown in the following help topic:
    PDF Export

    P.S. I would recommend that you use advanced data-binding instead of simple data-binding approach. Regardless of the "advanced" word in the title, there is nothing complex here. Actually it is easier and more bulletproof approach.

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top