I have a dataRepeater on a form that displays some data from an underlying DataTable 'dsMovies'. The data repeater contains a textbox that is bound to a field in the data table (see code below)
tbMovieNames.DataBindings.Add(New Binding("Text", dsMovies, "title"))
DataRepeater1.DataSource = dsMovies
DataRepeater1.AllowUserToAddItems = False
DataRepeater1.AllowUserToDeleteItems = False
The dataRepeater displays the data (which is a list of movies) as intended. What I want to do now, is to collect some values from a row when the user clicks on the textbox in the datarepeater. E.g. If a user clicks on a textbox (that displays the movie title), I want to save the movieID of that selected title in a global variable and then open another form that will display more information about the selected movie.
I dont have any problems opening a new form when the textbox is clicked on but I dont know how to save the movieid of the selected record. The underlying data table retrieves movieid, title and year from the database.
Could someone give me a step by step guide on how to do this?