This is a migrated thread and some comments may be shown as answers.

Copy/Paste and RowEditEnded

0 Answers 76 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Juliana
Top achievements
Rank 1
Juliana asked on 09 Jul 2012, 10:14 PM
Hello,

We save data in gridview on RowEditEnded event, where we compare e.NewData, e.OldValues to exclude ambigous transactions before saving. 
And they also want to be able to use copy\paste functionality for the grid. In fact  values are copied/pasted successfully, but RowEditEnded event never fires. So nothing is saved into DB.
We tried to do the next

private void manageTravelGrid_PastingCellClipboardContent(object sender, GridViewCellClipboardEventArgs e)

{

e.Cell.Column.DataControl.BeginEdit();

}


 but it appears that just copied value is already in e.OldValues and nothing is saved again.

How can I force a row to go into edit mode before pasting value? Or is there any workaround for this?

Thanks,
Juliana
Tags
GridView
Asked by
Juliana
Top achievements
Rank 1
Share this question
or