Hi,
I test your trial version, i'm working with UltraWebGrid. I get data from database with a stored procedure and fill a dataset, this is used by ultrawebgrid. I need to update data with another stored procedure but the event UpdateRow isn't raised, what is wrong?.
Thank you for your help
Ana
If the UpdateRow event isn't being called, my first suspicion is that you might be calling DataBind() explicitly before the event can be raised. This will generally cause your updates to be lost.
If this isn't the situation, it will likely take some more in-depth research to determine what's happening. I suggest submitting a support request and attaching a sample that we can run and debug where UpdateRow isn't being raised. A Developer Support Engineer will work with you, using your sample as a reference point, to identify and resolve the issue.
I called DataBind() method after that I put UltraWebGrid's Datasource, can you see the follow code?
Dim ds As new DataTable
objSqlCmd.Connection = objSqlConnection
objSqlCmd.CommandType = CommandType.StoredProcedure
objSqlCmd.CommandText = "spWMSCatalogoGenerico"
objSqlDataAdapter.Fill(ds)
Me.UltraWebGrid1.DataBind()
When I run the application and I try to add a new record the even UpdateRow isn't Raised. What's wrong?
Hello,
So from I see -- you have fixed the problem at your side, is that correct? I just want to double check if this is the case - I asusme in Page_Load you were binding the grid without checking for the IsPostBack flag and the grid was bound with data on each postback, hence clearing all events like UpdateRow, etc? Was this the case?
Thank you for your help. I could see the error, I didn't handle page's postback ={ .
Are you adding a new row or editting an existing row?
If you are adding a row, then you should be using the AddRow event. If you are editing a row then use the UpdateRow event.
Also, make sure that the "Me.UltraWebGrid1.DisplayLayout.AllowUpdateDefault = AllowUpdate.Yes" and "Me.UltraWebGrid1.DisplayLayout.AllowAdd= AllowAddNew.Yes" have been set. These are both no by default.