I want to send the data in the XamDataGrid1 to Oracle DB by DataSet.
How can i do ?
I tried it following ths.
"Dataset ds = xamDataGrid1.DataSource as DataSet;"
but it didn't work
I want to get DataSet from XamDataGrid
thanks in advance
Hi Michael,
you could try this:
DataSet dataSet = (xGrid.DataSource as DataView).DataViewManager.DataSet;
Hope this help.
Hi,
I need this solution also.
The thing is when i do this it gives me the old values of the XamDataGrid (one of the columns has XamColorPicker in each cell)
Hello,
Try using this:
var dataSource = xamDataGrid1.DataSource; DataTable dt = (dataSource as DataView).Table;
Alex.
I already binded DataSet to the XamDataGrid and it is appeared on the screen.
But now, what i want is reverse step to change the xamdatagrid into Dataset Object.
in other words,
" xamdatagrid.Datasource = ds.tables[0].DefaultView"
i'm done to bind DataSet to XamDataGrid .
but I cannot do the reverse step like " DataSet ds = xamdatagrid.datasource ". it happens "error"
Actually the XamDataGrid plays no role in this scenario. The XamDataGrid is only a User Interface Control, which you bind to a DataSource at first place. So all you need to do is transform the original source to a DataSet.