Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
Cancel UpdateCell Events in UltraWebGrid
posted

 Hi.

we use a UltraWebGrid with a hierarchical dataset for display and edit. The procedure

Protected Sub UG1_UpdateCell(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.CellEventArgs) Handles UG1.UpdateCell

is used to store the edited data into database after various server-side validation. The WebDataGrid provides an event BeforeUpdate to do the validations and setting e.Cancel = true cancels further processing of the update event. Doing the same in the UpdateCell method of the UltraWebGrid does not work. The update to the database fails but the grid still keeps the edited values (=> inconsitence).

 How can I inform the Grid about failed validations / cancel the update event and restore the "before-state"?

 

Thank you

Paolo Gios