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

Questions about Copy/Paste in GridView

2 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.
Tarcisis
Top achievements
Rank 1
Tarcisis asked on 14 Mar 2012, 07:47 PM
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

2 Answers, 1 is accepted

Sort by
0
Sergio
Top achievements
Rank 1
answered on 15 Mar 2012, 08:40 PM
Hi Telerik Team,

I have exactly the same doubts!

Regards,

0
Sergio
Top achievements
Rank 1
answered on 16 Mar 2012, 04:43 PM
Hi Telerik Team,

Any update for the above ?

Thanks!!
Tags
GridView
Asked by
Tarcisis
Top achievements
Rank 1
Answers by
Sergio
Top achievements
Rank 1
Share this question
or