Hi, I am struggling to get the SfDataGrid to automatically change to edit mode when you change cells. Pressing F2 to start editing took me ages to figure out!
<sf:SfDataGrid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="FieldsGrid" AutoGenerateColumns="False" ItemsSource="{Binding Path=Fields}" AllowEditing="True"
AllowSorting="False" AllowFiltering="False" EditTrigger="OnTap" CurrentCellActivating="FieldsGrid_OnCurrentCellActivating">
<syncfusion:SfDataGrid.Columns>
<syncfusion:GridTextColumn HeaderText="Field ID" MappingName="ID" AllowEditing="False" />
<syncfusion:GridTextColumn HeaderText="Field Name" MappingName="Name" />
<syncfusion:GridComboBoxColumn HeaderText="Data Type" MappingName="DataType" ItemsSource="{Binding Path=AvailableDataTypes}" />
<syncfusion:GridTextColumn HeaderText="Data Size" MappingName="DataSize" />
</syncfusion:SfDataGrid.Columns>
</sf:SfDataGrid>
private void FieldsGrid_OnCurrentCellActivating(object sender, CurrentCellActivatingEventArgs args)
{
FieldsGrid.SelectionController.CurrentCellManager.BeginEdit();
}
The OnCurrentCellActivating event fires when I change cell, but the BeginEdit call is not putting the grid into edit mode. I have to either click using the mouse or press F2 to edit. What am I missing please?