Tabindex in SfDataGrid

Hello,

 

I'm using the sfDataGrid control and i want to customize the behavior of the 'Enter' press key in the keyboard.

The last column of evry row in the grid i defined is an sfNumericUpDown control,

when the cursor is inside the sfNumericUpDown, i need to once i press the 'Enter' key, move the cursor inside the next sfNumericUpDown of the following row in the grid.

How can i achieve this behavior ?

 

Best regards.

 


1 Reply

BR Balamurugan Rajaraman Syncfusion Team December 8, 2016 01:51 PM UTC

Hi Elie. 
 
You can achieve your requirement “Tabindex in SfDataGrid” by calling SelectionController.CurrentCellManager.BeginEdit() method in SfDataGrid’s CurrentCellActivated Event.  
  
 
public MainPage() 
{ 
    this.InitializeComponent(); 
    this.grid.CurrentCellActivated += Grid_CurrentCellActivated; 
} 
 
private void Grid_CurrentCellActivated(object sender, CurrentCellActivatedEventArgs args) 
{ 
    this.grid.SelectionController.CurrentCellManager.BeginEdit(); 
} 
 
We attached the sample based on your query for your reference Please find the samples from the below link. 
 
Sample Link: NumericUp_Down 
 
  
Regards, 
Balamurugan. 


Loader.
Up arrow icon