Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good day,

I insert a line in a datatable at a specific position. After that I update my database. My probleme is that when I update my database the line that I add go at the bottom of the list. Does some one know why.

x.Rows.InsertAt(maligne, i)
histTableAdapter.Update(x)

Thank you
Posted

1 solution

I am nost sure that this is VBA, I don't think so. Either way, your problem is that you don't understand how databases work. Any records inserted will always be inserted at the bottom. The best you can do is create a column with a position index and sort by that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900