Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Add/Delete rows in WebGrid
posted

Hi,

Is there any example or code available that demonstrates adding and deleting rows dynamically from "webgrid" component. I havn't seen any in the examples distributed. Any pointers will help.

Thanks.

  • 2301
    posted

     Hi:

    We not created any of these because each situation is a little different. For example, in some cases its best to have a popup window fo radding rows, in others its better to put the new row into the grid with blank fields and then allow the user to edit it. A third possibility is to have a separate "row" outside the grid where the user enters data and then presses an "Add" button to add the row to the grid.

    Another issue is sorting: if sorting is being applie, it'll affect which page in the grid the new row appears.

    If you can provide some details on how you'd like to approach this, I'll create an example fo ryou.

    Best,
    Jim