Stuck on storing individual rows from the sqlDataReader for later use
I am using visual studio, winforms and the integrated SQL server, The win form is simple it contains 1 x textbox & 3 x buttons i have two sql tables Questions & Answers i would like for a question from the question table to be loaded into the textbox, and i want the 3 answers from the answers table to be loaded into the button text i have been able to get this working using the sqlDataReader and using while Datareader.read() { txtBox.text = DataReader.getValue() etc however i have been unable to stop the dataReader from reading up until the last result, i call dataReader in a form onload() event so i need a way of saving the results stream from the dataReader to a object or list that i can access to make a simple question and answer form, also in the form there is no right/wrong answers, simply choosing an option should display the next row from the sql tables mentioned above, any help or advice is greatly appreciated, sorry if this does not make sense.