Hello there,
I have a grid which enables adding/deleting rows. I call the server side function gridSubscription_DeleteRow when rows are deleted from the grid and I have
OnDeleteRow
="gridSubscription_DeleteRow" declared inside the definition of the grid.
My issue is, when I add a new row to the grid, and without saving to the database, I delete the newly added row, the event doesn;t get fired. Is there anyway to fire this event for newly added rows?
Hello Sudha,
I am not so clear with your scenario but if you register a server - side handler you do not need to call it manually, when you delete a row on postback the grid will raise the registered handler and you will be able to perform delete operation on your data.
For example:
Grid declaration
<igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server"
OnDeleteRow="UltraWebGrid1_DeleteRow">
<Bands>.....
Server side handler :
protected void UltraWebGrid1_DeleteRow(object sender, RowEventArgs e)
{
//TODO : perform delete logic
}
Please refer this "how to" Updating Data with a Data Set
Sudha,
Fill free to contact me if you have any questions with this matter.
Thanks.
Hi
this event doesnt fire for me OnDeleteRow ="gvDetails_DeleteRow" for ultrawebgrid so not sure what i am doing wrong can you please let me know
Regards
Raghu