Paging in DataGrid

Last post 10-26-2009 2:33 AM by Rajneesh Verma. 3 replies.

Sort Posts:

  • Paging in DataGrid

    10-23-2009, 8:31 AM
    • Member
      1 point Member
    • sush_indus
    • Member since 12-09-2008, 6:37 AM
    • Bangalore
    • Posts 54

    Hi experts,

    I have a grid in .net 1.1

    Now I am facing problem in paging that is I have given the property allowpaging=true;

    and pagesize=10 and one more <pagerstyle> tag in aspx page.

    and

    Pageindexchanged function in aspx.cs page.

    But i am getting exception like this

    frmEmplProjReport AllowCustomPaging must be true and VirtualItemCount must be set for a DataGrid with ID dgProjreport when AllowPaging is set to true and the selected datasource does not implement ICollection.


    can u help me to solve this.

    and one more thing if i make custompagesorting as true

     then the grid shows only 10 items and no link for next pages.


    thank you

    // -1) { theform = document.Form1; } else { theform = document.forms["Form1"]; } theform.__EVENTTARGET.value = eventTarget.split("$").join(":"); theform.__EVENTARGUMENT.value = eventArgument; theform.submit(); } // ]]>

    Sushmitha
  • Re: Paging in DataGrid

    10-23-2009, 8:57 AM
    • Contributor
      3,278 point Contributor
    • Rajneesh Verma
    • Member since 07-15-2008, 6:22 AM
    • Lucknow, U.P. INDIA
    • Posts 745

    hi, check these links

    http://www.c-sharpcorner.com/UploadFile/rbsan123/Paging01042007002528AM/Paging.aspx

    http://www.dotnetjunkies.com/Tutorial/EA868776-D71E-448A-BC23-B64B871F967F.dcik

    http://www.dotnetjunkies.com/Article/AAF84EAD-C412-4304-A88A-AF26F8C883E6.dcik

    thanks

    RajneesH Verma
    Sr. Software Developer
    09742846246 (Karnataka)
    09839040266 (Uttar Pradesh)
    Technology Specialist at www.innovateonindia.com

    Please remember to click "Mark as Answer" on the post that helps you and close that thread which fulfill your requirement.
  • Re: Paging in DataGrid

    10-26-2009, 2:25 AM
    Answer
    • Member
      1 point Member
    • sush_indus
    • Member since 12-09-2008, 6:37 AM
    • Bangalore
    • Posts 54

    Hi thanks for help.

    My code is working.


    Sushmitha
  • Re: Paging in DataGrid

    10-26-2009, 2:33 AM
    • Contributor
      3,278 point Contributor
    • Rajneesh Verma
    • Member since 07-15-2008, 6:22 AM
    • Lucknow, U.P. INDIA
    • Posts 745

    Hi,

    Sushmitha

    What was the problem there? If you will be able to post your solution then it helps to other too!!!!!!

    and don't forget to close the thread.

    Thanks..

    RajneesH Verma
    Sr. Software Developer
    09742846246 (Karnataka)
    09839040266 (Uttar Pradesh)
    Technology Specialist at www.innovateonindia.com

    Please remember to click "Mark as Answer" on the post that helps you and close that thread which fulfill your requirement.
Page 1 of 1 (4 items)