I'm trying to add my grid items to my ObservableCollection but I'm unsuccessful.
I have a column that has the CheckBox that I put through the ShowCheckBoxSelectorColumn
property.
I have the following Xaml:
<dxg:GridControl x:Name="grid" EnableSmartColumnsGeneration="True" AutoGenerateColumns="None"
FontWeight="Normal" SelectionMode="MultipleRow" Margin="0,0,0,324" SelectionChanged="grid_SelectionChanged">
<dxg:GridControl.View>
<dxg:TableView x:Name="view" ShowGroupPanel="True" AllowEditing="False" ShowTotalSummary="False" AutoWidth="True" NavigationStyle="Row"
ShowSearchPanelMode="Never" UseLightweightTemplates="All" FontSize="11" ShowCheckBoxSelectorColumn="True"/>
</dxg:GridControl.View>
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="Codigo" Header="Código" Width="25"/>
<dxg:GridColumn FieldName="Descricao" Header="Descrição"/>
</dxg:GridControl.Columns>
</dxg:GridControl>
The problem is that I do not know how to add these my selected items to a collection. Can someone help me?
Thank you!