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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Navigation solution for mass edit

Thread ID:

Created:

Updated:

Platform:

Replies:

116009 Mar 17,2014 05:12 AM Mar 25,2014 03:12 PM WPF 1
loading
Tags: GridDataControl
Pierre MARTIN
Asked On March 17, 2014 05:12 AM

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,

Saravanan M [Syncfusion]
Replied On March 25, 2014 03:12 PM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;