WebGrid Community Server

Welcome to WebGrid Community Server Sign in | Join | Help
in Search

Deleting Record

Last post 12-22-2008, 15:29 by admin. 4 replies.
Sort Posts: Previous Next
  •  11-04-2008, 4:04 847

    Deleting Record

    I observed the grid didn't remove record, but actually in deleted from the table in the database after I clicked delete. Is it a bug or I did something mistake? Please help
  •  11-04-2008, 16:38 851 in reply to 847

    Re: Deleting Record

    Hi,

    This happens only if you are deleting a row after you have loaded data from WebGrid, normally WebGrid loads data on prerender event.

    However it also loads data if you requests do by querying a row or columns in the grid.

    It this fails, you can force it to reload all data.


    Olav Botterli, WebGrid Founding Developer
  •  12-16-2008, 12:03 914 in reply to 851

    Re: Deleting Record

    Hi, i'm having the same problem with all the sample project.
    I click on delete record and nothing seems happen, but if i click on refresh button the grid is update.
    Any suggestion ?
  •  12-22-2008, 12:49 920 in reply to 914

    Re: Deleting Record

    Try using the following code, replacing WebGrid1 with the name of your webgrid, to set it to automatically refresh the grid after a change. . .

    private void Page_Load(object sender, System.EventArgs e)
    {
    this.WebGrid1.ReLoadData = true;
    }

    Hope that helps,

    JB
  •  12-22-2008, 15:29 921 in reply to 920

    Re: Deleting Record

    I have released an beta version in Premium section which contains a fix for this issue.

    Olav Botterli, WebGrid Founding Developer
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems