If e.Row.RowType = DataControlRowType.DataRow Then If (e.Row.RowState And DataControlRowState.Edit) <> 0 OrElse (e.Row.RowState And DataControlRowState.Insert) <> 0 Then Dim btnSauvegarder As ImageButton = CType(e.Row.Cells(0).Controls(0), ImageButton) If btnSauvegarder.CommandName = "Update" Then btnSauvegarder.OnClientClick = String.Format("if (!valideLeTout(" & e.Row.RowIndex & ")) return false;") End If End If End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)