Posted 8 September 2017, 1:53 pm EST
I have a farpoint SpreadSheet on my Windows form. I have a button to add an empty row (btnAddRow). And I have a button to save (btnSave) changes to database. When I enter some data and Click on Save button a New Row is added to the SpreadSheet. There is no code in the btnSave_Click event. Still it adds to the Spread. If the data entered in the new row is valid, the new valid record is added to the database and the spread is refreshed. But if I enter some invalid data the Recrods are not saved and throws a custm error message that we have in our code. Once we click ok on the message we are on the Spread which is not refrshed. Hence we have the invalid row and the blank new row which is added automaticaly when I click the save button. Please help why this new balmk row is added.