We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Navigation solution for mass edit

Hi,

   We've been trying to use the DataGridRow to provide a way for our users to edit data in mass.
   We'd like them to always view the current as in edit mode and with the whole content selected when it gets the focus.
   So far, we've used ActivateCurrentCellBehavior=SelectAll on the DataGridControl but it seems it only works when the user click on a cell with the mouse. We'd like this to be the case even when the user navigate with the keyboard (TAB, SHIFT-TAB, ENTER). This seems to only change the current cell without triggering the edit mode. We couldn't find a way to it programatically when the current cell is activated.

   What options do we have?

Thanks in advance,

1 Reply

SM Saravanan M Syncfusion Team March 25, 2014 07:12 PM UTC

Hi Martin,

 We are sorry for delay caused,

 We have analyzed your query. You can activate the current cell by using CurrentCell.Activate() method. Please refer the below code snippet.

 Code snippet[C#]:

this.SyncGrid.CurrentCellMoved += SyncGrid_CurrentCellMoved;

 

void SyncGrid_CurrentCellMoved(object sender, GridCurrentCellMovedEventArgs args)

{

 var data=(sender as GridDataControl).Model.CurrencyManager.CurrentCell.CellRowColumnIndex;

 this.SyncGrid.Model.CurrencyManager.CurrentCell.Activate(data.RowIndex, data.ColumnIndex);

 this.SyncGrid.Model.CurrencyManager.CurrentCell.BeginEdit(true);

}

  

Please let us know if you have any queries,


Regards,

Saravanan.M


Loader.
Live Chat Icon For mobile
Up arrow icon