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).
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.