hello,
I would like to bind my datagrid to a simple ObservableCollection<string> to have a basic support of automatic insertion/deletion of strings in a list.
The following is the code I used.
XAML:
<sfGrid:SfDataGrid AddNewRowPosition="Bottom"
AllowDeleting="True"
AllowEditing="True"
AutoGenerateColumns="True"
ItemsSource="{x:Bind StringList}" />
Code Behind:
public ObservableCollection<string> StringList => new ObservableCollection<string> { "abc", "def", "123"};
Result:
not really what I was expecting...
How can I bind to a simple ObservableCollection<string> without DataGrid to try to get String Properties and display them, but actually use the basic string?