2
I am trying to add my grid items to my Observablecollection but I am unsuccessful.
I have a column that has the Checkbox that I put through the property ShowCheckBoxSelectorColumn
.
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 I don’t know how to add these selected items to a collection. Someone can help me?
Grateful!
Perfect Samuel, it worked. Thank you very much!
– Emerson