Refresh grid after record deletion

The GridGrouping control grid does not refresh the view after the deletion of a record. To see changes i need to reload the page.

Is there anything wrong or missing in my code below?
Thanks for any answer.

Maurizio Selvaggini

'-----------------------
' code details
'-----------------------
To delete records i use a GridRowEditUpdateLink with a customized delete function named "delete_records". This customized function is correctly called and executed when i click on the GridRowEditUpdateLink link.

Public Sub delete_records(ByVal sender As Object, ByVal e As GridRowEditUpdateEventArgs)
Select Case e.CommandLinkType
Case "Delete"
sqlPDS.DeleteParameters("fiedl1").DefaultValue = e.CurrentGridRow.Record.GetValue("field1")
.
.
.
.
sqlPDS.Delete()
Case Else
End Select
End sub

Also i have disabled the GridRowEditUpdateLink default delete processing to avoid duplicate processing:

Protected Sub gridPDS_DataSourceControlRowDeleting(ByVal sender As Object, ByVal e As Syncfusion.Web.UI.WebControls.Grid.Grouping.GridDataSourceControlRowDeleteEventArgs) Handles gridPDS.DataSourceControlRowDeleting
e.Cancel = True
End Sub

1 Reply

JB Jaffersathick B Syncfusion Team December 30, 2009 10:27 AM UTC

Hi Maurizio,

Thank you for your interest in Syncfusion products.

I am afraid that I am unable to reproduce the reported issue. I am able to refresh the record without refreshing the page. Can you please provide more information regarding this or send a sample for this. It will help me to sort out the problem.

Let me know if you have any queries.

Thanks and Regards,
Jaffer.B

Loader.
Up arrow icon