Hi Vasanth,
Thank you for using Syncfusion products.
We have analyzed your query. You can achieve your requirement by wiring CurrentCellActivated event and call the BeginEdit () method.
Code Snippet [C#]:
void datagrid_CurrentCellActivated(object sender, CurrentCellActivatedEventArgs args) { this.datagrid.SelectionController.CurrentCellManager.BeginEdit(); } |
We have also prepared the sample based on this and please find the sample under the following location,
Sample:
http://www.syncfusion.com/downloads/support/directtrac/139935/ze/SfDataGridDemo1471600134
Please let us know if you need further assistance.
Thank you,
Jai Ganesh S
Hi Vasanth,
Sorry for the inconvenience caused.
We have analyzed your query. When we scroll the rows, the rows are reusable and we cannot find the reusable rows. Also we cannot be set to the current cell to that row. Hence the EditMode is not triggered for the invisible rows. However you can achieve your requirement by calling the BeginEdit () inside the Dispatcher,
Code Snippet [C#]:
async void datagrid_CurrentCellActivated(object sender, CurrentCellActivatedEventArgs args) { await datagrid.Dispatcher.RunIdleAsync(result => { datagrid.SelectionController.CurrentCellManager.BeginEdit(); }); } |
We have also prepared the sample based on this and please find the sample in the following location:
Sample:
http://www.syncfusion.com/downloads/support/directtrac/133738/ze/SfDataGridDemo-1016976433
Please let us know if you need further assistance.
Thank you,
Jai Ganesh S
<Grid:SfDataGrid x:Name="datagrid" AutoGenerateColumns="False" ItemsSource="{Binding GDCSource}" AllowResizingColumns="True" AllowResizingHiddenColumns="True" EditorSelectionBehavior="MoveLast" EditTrigger="OnTap" AllowEditing="True" ShowRowHeader="True" |
Hi Vasanth,
Thank you for the update.
We have analyzed your query. When we pressing UP arrow cursor is placed in left corner. This is the default behavior in WinRT. However you can achieve your requirement through work around by customizing the GridCellTextBoxRenderer.
Code Snippet [C#]:
public class GridTextBoxRendererExt : GridCellTextBoxRenderer { int keyCount = 0; protected override void OnWireEditUIElement(TextBox uiElement) { uiElement.KeyUp += uiElement_KeyUp; keyCount = 0; }
void uiElement_KeyUp(object sender, KeyRoutedEventArgs e) { if (e.Key == Key.Up && keyCount == 0) { (sender as TextBox).SelectionLength = (sender as TextBox).Text.Length; keyCount++; } else if (e.Key == Key.Up && keyCount == 1) { (sender as TextBox).SelectionStart = (sender as TextBox).Text.Length; } } } |
We have also prepared the sample based on this and please find the sample under the following location,
Sample: http://www.syncfusion.com/downloads/support/directtrac/139935/ze/SfDataGridDemo-2147351648
Please refer the following Kb link to show how to override the renderer,
Please let us know if you need further assistance.
Thank you,
Jai Ganesh S