Hi Kent,
Sorry for the Delay caused,
We have analyzed your query. We don’t have direct
support to bind the SelectedItems value in GridDataControl.Because SelectedItems
property is not a DependencyProperty. However you can use CollectionChanged
event to get SelectedItems Value.You can refer the below codesnippet to achieve
your requirement.
Codesnippet[XAML]:
gdc.SelectedItems.CollectionChanged
+= (sender, e) =>
{
};
|
If you want to bind the SelectedItems value.Please
refer the below codesnippet.
Codesnippet[XAML]:
<syncfusion:GridDataControl x:Name="DataGrid"
ItemsSource="{Binding GDCSource}"
ShowAddNewRow="False"
AutoPopulateColumns="False"
AllowSelection="Row"
ListBoxSelectionMode="MultiExtended"
local:GDCAttachedProperty.EnableSelectedItemBinding="True"
local:GDCAttachedProperty.SelectedItems="{Binding
SelectedItems, Mode=TwoWay}"
>
|
We have prepared a sample based on this, please find
the attached sample below,
Please let us know if you have any queries,
Regards,
Saravanan.M
GridDataControlSample_SelectedItemsBinding_1ed717ad.zip