Hi, all.
I am trying Data Table Row delete or remove with vb .net, but i have some problem on Auto increment update after deleting Datatype Row.Kindly refer to the followings for my question.
I am using Local ".csv" file for DB handling.
1. I make one Data Table with one Auto increment Column.
2. In adding Data Table Row case, there is not problem updating Auto increment value.
3. In deleting Data Table Row case, there is problem on Updating Auto increment value.That means, after deleting or removing the Data Table Row, Auto Increment value is not updated.
For example, i want auto numbering auto increment column value as like 1, 2, 3, 4, 5... after deleting some row. But now, i have result disconnected numbering as like 1, 2, 4, 5... after deleting 3rd row.I have searched relation issue but i can't find some solution.Kindly anyone help me.The following is my current source.
DataSet.Tables("TableName").Rows.RemoveAT(RowIndex)
DataSet.AcceptChanges()
DataGridView.DataSource = DataSet.Tables("TableName")