<Syncfusion:SfDataGrid x:Name="dataGrid" Grid.Column="0"
AllowEditing="True" ItemsSource="{Binding Path=EmployeeDetails}" AllowFiltering="True" AllowSorting="False"
ShowRowHeader="True">
<Syncfusion:SfDataGrid.Columns>
<Syncfusion:GridNumericColumn MappingName="EmployeeId" AllowScrollingOnCircle="True"/>
<Syncfusion:GridTextColumn MappingName="EmployeeName"/>
<Syncfusion:GridTextColumn MappingName="City"/>
<Syncfusion:GridTextColumn MappingName="MailId"/>
</Syncfusion:SfDataGrid.Columns>
</Syncfusion:SfDataGrid> |
this.dataGrid.SelectionController = new GridSelectionControllerExt(this.dataGrid);
internal class GridSelectionControllerExt : GridSelectionController
{
public GridSelectionControllerExt(SfDataGrid datagrid) : base(datagrid)
{
}
protected override void ProcessPointerWheel(MouseWheelEventArgs args, RowColumnIndex rowColumnIndex)
{
var currentCell = CurrentCellManager.CurrentCell;
var prop = DataGrid.GetVisualContainer().GetType().GetField("SuspendManipulationScroll", BindingFlags.NonPublic | BindingFlags.Instance);
if (currentCell.GridColumn.MappingName== "EmployeeId" && (currentCell.GridColumn is GridTemplateColumn)
&& CurrentCellManager.CurrentRowColumnIndex.RowIndex == rowColumnIndex.RowIndex)
{
prop.SetValue(DataGrid.GetVisualContainer(), true);
}
else
{
prop.SetValue(DataGrid.GetVisualContainer(), currentCell.IsEditing);
}
}
}
|
Hello,
thx for answer.
i installed th latest version 15.2.0.43
this is the Error-Message