This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I noticed for DataGrid control, if there is a cell that is modifiable, and the user left click on the row to select it, things are ok. But if the user right clicks on the same cell item, a context menu would pop up and disappear ( for cut, copy, paste). If the user just right click on a cell/row that is currently not selected this does not happen. This could be confusing behavior so is there a way prevent it from happening? This happens in all the data grid examples. Thanks, Andy |
|
|
Hello Andy Thanks for pointing this out. This is happening because we listen to when the DataGrid loses keyboard focus, and then switch the focused cell out of editing mode. This is so that if a control outside the DataGrid gets focus, then the DataGrid switches out of edit mode. Unfortunately I don't think we can solve this issue as well as keep the lost-keyboard-focus behaviour. For now, try create a new class that extends the DataGrid and override the OnLostKeyboardFocus method to do nothing. -Jason Fauchelle |
|