I have a grid view in which I have a commandfield (please check the code section)
My requirement is when I add a new record in the grid the text should be add and when I update the existing row the text should be update. I have tried to use NewText as well. But I am not able to get the desired result.
Am I missing something.
<asp:CommandField HeaderText = "Edit" EditText = "Edit" CancelText = "Cancel" ShowEditButton = "true" UpdateText = "Update" ControlStyle-CssClass = "LinkButton"/>