This question is locked. New answers and comments are not allowed.
Hi there,
I have a few questions about Copy/Paste in GridView. Some questions are already in the forum.
1ºSupose that i have a Grid with values.During the paste from an excel file, some values in rows will be changed and there will be new rows either!
It is possible to know which rows has been updated and which rows are new (to store in DB,without calling BD for each cell that has been pasted)?
2ºIf i want to make my own paste into grid, why this doesn´t work (ctrl + V):
private void GridView_KeyDown(object sender, KeyEventArgs e){
if (Keyboard.Modifiers == ModifierKeys.Control)
{
if (e.Key == Key.V)
{
//never reach this line
var text = System.Windows.Clipboard.GetText();
}
}
}
3ºIf i use Lightweight DataTable it is possible to create rows during the paste?
4ºIt is possible to call CellEditEnded or CellValidating for each pasted cell?
5ºIt is possible to put a BusyWindow in grid while it pasting (a have a excel file with 8000 rows, but busy window in grid doens´t work)?
Thanks
I have a few questions about Copy/Paste in GridView. Some questions are already in the forum.
1ºSupose that i have a Grid with values.During the paste from an excel file, some values in rows will be changed and there will be new rows either!
It is possible to know which rows has been updated and which rows are new (to store in DB,without calling BD for each cell that has been pasted)?
2ºIf i want to make my own paste into grid, why this doesn´t work (ctrl + V):
private void GridView_KeyDown(object sender, KeyEventArgs e){
if (Keyboard.Modifiers == ModifierKeys.Control)
{
if (e.Key == Key.V)
{
//never reach this line
var text = System.Windows.Clipboard.GetText();
}
}
}
3ºIf i use Lightweight DataTable it is possible to create rows during the paste?
4ºIt is possible to call CellEditEnded or CellValidating for each pasted cell?
5ºIt is possible to put a BusyWindow in grid while it pasting (a have a excel file with 8000 rows, but busy window in grid doens´t work)?
Thanks