This question is locked. New answers and comments are not allowed.
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)
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
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