Hello, I am using the UpdateCell event for server side validation, it works fine, but when I try to change others cells values it does nothing. What I am doing wrong?, It's not this the right event?.
Sample code:
If e.Cell.Key = "Referencia" Then Dim oItem As .... Dim oA As ..... oItem = oA.BuscarPorReferencia(e.Cell.Text, "") e.Cell.Row.Cells(Me.UltraWebGrid1.Columns.FromKey("NombreProducto").Index).Text = oItem.Nombre
End If
ok,Ajax enabled, that's my situation. Much thanks
Do you have the grid's AJAX functionality turned on? If so, then this would be expected; only the cell that was changed on the client (the one that e.Cell rfers to in the UpdateCell event) is passed back from the server to the client. Any other changes would be lost. You'll either need to make these changes in JavaScript on the client, or use the UpdateRow event as well (which should allow you to update any values in the row being updated, not just one cell).
Yes, that is true. I mean that when I change others cells values during = the updatecell event, those values does not appear in the grid.
I don't believe that WebGrid raises any server-side event when you change the value of a cell on the server. UpdateCell is only raised when the value of a cell changes on the client.