Intersoft WebGrid Documentation
How-to: Maintain the new row's value when there is error during adding action
See Also Send comments on this topic.

Glossary Item Box

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.

  1. Open WebGrid.NET's Designer.
  2. Set focus on Popular Settings - Click See all properties.
  3. 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.   

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.