You must Sign In to post a response.
  • Category: ASP.NET

    Adding row to GridView

    Is it possible to add rows dynamically to gridview without using session or viewstate
  • #767473
    Hi , Paul

    yes it is 100% possible to add rows dynamically to gridview without using session or viewstate.

    first you need to create empty gridview row datatable. then add your dynamic gridview row.
    can also insert dynamic rows value into database but it little bit complicate.

    Paul,.S

  • #767478
    Hi,

    First explain your requirement clearly so that we can say whether it's possible or not, to add record into gridview there is no need to use session / viewstate object, you can use datatable/dataset and bind the table to your gridview but in some cases we must needed either session/viewstate before confirming we should know the scenario so that we can confirm whether it's needed or not.

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #767479
    I need to add blank row to an existing gridview with records.


  • Sign In to post your comments