in my DataGridView I click on a new row, then a new empty row appears at the bottom, this is standard behavior, and there are no problems. So I fill in the line and click on the last empty line, and this is the problem: the line I just filled in disappears. Cells in datagridview have different types of textbox, datagridviewcombobox, date, int. I am breaking a DataError event and the error message does not appear.
The way I set the data source DataGridView.DataSource=dataTable;
I can not find the reason why this is happening. I found that one of the reasons may be that the data entered is invalid, but as far as I am convinced, this should not be my business, but maybe I'm wrong.
source
share