Rakstip
Member
I made a little app for a friend with a very large movie library(DVD,VHS,etc.). He uses it to catalog his movies and to keep track of which movie he lent out to which person. The app uses a datagrid with 5 columns(ID#,Title,Genre,Comments,Who has it.). The datagrid is sortable. When first viewed the datagrid is sorted by the ID#. When the datagrid is sorted by any other column and he needs to delete a movie it does not delete the correct row. For example, we will say the movie # 1 is Star Wars and # 2 is Spaceballs. When I click to sort by tilte Spaceballs is first and Star Wars is second. If I want to delete Star Wars it actually deletes Spaceballs. What could be causing this?
I have it setup that you double click the row you want to delete and it fills a set of textboxes. Then you click a Delete button to delete the movie from the database.
I have only been playing around with programming for a short time. I am using VS.net 2003 and VB.net.
I have it setup that you double click the row you want to delete and it fills a set of textboxes. Then you click a Delete button to delete the movie from the database.
I have only been playing around with programming for a short time. I am using VS.net 2003 and VB.net.