Manipulating data from datagrid, datatables, Using Current RowIndex
Posted on 2006-03-28
I have a vb.net windows app that uses a tabcontrol have a main form and a search page in 2 tabs. I previously set up to pass the entire contents of a search to the main form. I now need to pass only the row selected to the main form. My code is working fine to pass the table, rebind etc. Is there an easy way to pass a dataset or table containing only the selected row just as I'm currently doing for multiple rows.
Currently, I am doing something like:
Dim dtSearch As DataTable = dsSrchGrid.Tables(0).Copy
I would like to have the one selected row in dsSrchGrid.Tables(0)