Webgrid 7 Delete row and refresh right after fails

1 reply. Last post: January 26, 2010 2:51 AM by Glenn Layaar
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hello,

 

We have an issue with delete method. We use a custom delete

 

void wg_DeleteRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)

{

	var myObject= (MyObject)e.Row.GetObjectRow();

	myObject.Delete();

	e.ReturnValue = false

}

 

The delete works well, and remove the object from the webgrid.

But If I do a refresh right after the deletion, the deleted object re-appears !

Other problem : if I add a new object, the wg.ClientAction.Refresh(); method doesn't show the new object.

Here is the datasource :

<ISDataSource:ISDataSource ID="ids" runat="server">
        <Tables>
            <ISDataSource:ISDataSourceTable
                SelectMethod="GetData" 
                SelectCountMethod="GetCount"
                TableName="table" 
                TypeName="MyType" 
                EnablePaging="true">
            </ISDataSource:ISDataSourceTable>
        </Tables>
    </ISDataSource:ISDataSource>
All times are GMT -5. The time now is 5:40 PM.
Previous Next