Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
<syncfusion:SfDataGrid x:Name="sfdatagrid" Grid.Column="0"
AutoGenerateColumns="False"
AllowEditing="True"
CurrentCellBorderBrush="Transparent"
RowSelectionBrush="Transparent"
AllowGrouping="True"
ShowRowHeader="True"
SelectionUnit="Cell"
SelectionMode="Single"
ItemsSource="{Binding OrderDetails}">
public class GridCellSelectionControllerExt : GridCellSelectionController
{
public GridCellSelectionControllerExt(SfDataGrid dataGrid) : base(dataGrid)
{
}
protected override void ProcessPointerPressed(MouseButtonEventArgs args, RowColumnIndex rowColumnIndex)
{
var columnIndex = this.DataGrid.ResolveToGridVisibleColumnIndex(rowColumnIndex.ColumnIndex);
var column = this.DataGrid.Columns[columnIndex];
if (column is GridCheckBoxColumn)
{
base.ProcessPointerPressed(args, rowColumnIndex);
}
}
protected override void ProcessKeyDown(KeyEventArgs args)
{
return;
}
} |