I‘d like to show xml data (with xsd) in a RadGridView and edit its value. The values in the grid should allow only this data, which are allowed in xsd. For instance, for enum type I would like to have a ComboBox column.
In Xaml I have a following code:
<telerik:RadGridView x:Name="dataGrid" AutoGenerateColumns="True" CanUserResizeRows="True">
The xml data is loaded in a DataSet and connected to the grid:
private void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
var data = new DataSet();
dataGrid.DataMember = data.Tables[data.Tables.Count - 1].TableName;
dataGrid.ItemsSource = data;
The Xml file is shown as a hierachical data, but the data types in the columns are always strings.
How can I change the column type, without to parse the xsd?