Hi Stratis,
Thanks for contacting Syncfusion Support.
In SfDataGrid, it is possible to achieve your requirement. You can enable multiple selection in SfDataGrid by setting SfDataGrid.SelectionMode as “Multiple”.
<syncfusion:SfDataGrid x:Name="dataGrid"
AutoGenerateColumns="False"
ColumnSizer="Star"
ItemsSource="{Binding OrdersInfo}"
SelectionMode="Multiple"> |
If you need to apply the selection for the column having button, then it is possible by loading button in the center and leave the space to the left and right of the button instead of loading the button to the cell size. Please refer the below code snippet for better understand.
<syncfusion:GridTemplateColumn MappingName="Fruits">
<syncfusion:GridTemplateColumn.CellTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button Grid.Column="1" Text="{Binding Fruits}" />
</Grid>
</DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
</syncfusion:GridTemplateColumn> |
We have prepared a sample based on your requirement by loaded the buttons in one column and loaded checkbox in one column and you can download the same from the below link.
Regards,
Divakar.