Selected Row in Database to fall into Text Boxes

  • Thread starter Thread starter MsSunshine
  • Start date Start date
M

MsSunshine

Guest
Using SQL Connection to access a Database I have loaded my DataGrid. Now I've selected a Row in the DataGrid and am trying to have the selected row fall into TextBoxes. Any suggestions how to do this?
 
First, check to make sure that the DataGrid's CurrentRowIndex is
greater than -1, to be sure that a row is, in fact, selected. Then,
use the CurrentRowIndex property to access the correct
DataRow of your DataTable (in the DataSet).

Hope this makes some sense.
 
Thank you Bucky.
Yes this does make sense. I am able to select a row and with the double-click Method close that form and open a new one with textboxes prepared for each field name. I am just not sure how to get each field to fall into the right text box.

Your advice was very helpful.
 
Back
Top