Hello,
I have XamDataGrid in my form which has 2 columns: Project and Color which has dataTamplate with XamColorPicker.
I have a save button which has to save the XamDataGrid to dataTable . The thing is that i don't know how to convert XamDataGrid to DataTable. I need to do this in code (not in xaml)
I tried to use records as follows:
foreach(Infragistics.Windows.DataPresenter.Record c in ProjectDataGrid.Records)
{
Infragistics.Windows.DataPresenter.DataRecord dr = (Infragistics.Windows.DataPresenter.DataRecord)c;
string s = dr.Cells[0].Value.ToString();
string k = dr.Cells[1].Value.ToString();
}
but it takes my "old" values from the XamDataGrid (before i changed a color)
Hello Parmod,
Here is an updated link from the documentation: http://help.infragistics.com/NetAdvantage/WPF/2012.2/CLR4.0/?page=xamDataPresenter_Binding_a_DataPresenter_Control_to_a_DataSet.html
The Below link is not working.Please suggest...
Hi,
I am just checking if you were able to resolve your issue with Pranzo’s explanation. Please let us know if you still require assistance on the matter and if not verify Pranzo’s answer so this thread can help other users with the same predicament.
Thanks in advance.
No.BIND to the DataSet must XDataGridexample:http://help.infragistics.com/Help/NetAdvantage/WPF/2011.1/CLR4.0/html/xamDataPresenter_Binding_a_DataPresenter_Control_to_a_DataSet.html
Then MyDataSet.Update ();
OK so how do i convert XamDataGrid to DataSet?