Sometimes when you perform adding new row, an error will be occurred because you input the wrong value. The default settings is all values that you have entered into the newRow will be disappeared.
In this topic, you will how to maintain the new row's value when there is error during adding action.
To maintain the new row's value when there is error during adding action.
- Open WebGrid.NET's Designer.
- Set focus on Popular Settings - Click See all properties.
- Set ResetNewRowValuesOnError to False.
Now, if you try to insert the KeyValue that exists in the WebGrid (eg : ALFKI --> NorthWind's CustomerID) to the new row an error will occur, but all of the values that we have entered will still exist.