filling Dataset with datagrid variables
Question:
Is it possible to fill a dataset with Datagrid Variables?
Let's take a dtg with 3 tables and a select field.
If I select a new index I want t0 store the values of the selectedIndex in a dataset which i'll put in a
"Session("dts") = myDTS" which I can take to the following page so I can fill a new datagrid with the dataset of selected items from the previous datagrid.
I tried this :
dtsFullOrder = new Dataset()
dtsFullOrder.Tables(0).Rows(count - 1).Item(0) = dtgItems.SelectedItem.Cells(1).Text()
dtsFullOrder.Tables(0).Rows(count - 1).Item(1) = dtgItems.SelectedItem.Cells(2).Text()
dtsFullOrder.Tables(0).Rows(count - 1).Item(2) = dtgItems.SelectedItem.Cells(3).Text()
Session("dtsFullOrder") = dtsFullOrder
But it doesn't work like that.
any suggestions?
I don't want to store the selected data in a tempDatabase
Thank you in advance.
Frank
Frank Vandeven
Belgium
__________________
Frank Vandeven
Belgium
|