I copy 3x1 text in clipboard. like:
werrrrrrrrrsdfsdsdfsd
Then I select 10x2 area in grid. I found it will fill all area will clipboard. like:
Is there any property in grid to control the behavior. I want just paste data in 3x1 area.
There is no property to control this. When there is a selection, the target of the paste is all that selection if possible. To that end, if the values are an even multiple of the values in the clipboard (e.g. 3x1 in clipboard and you selected 9x2, 6x2, etc.) then the values will be replicated. This is particularly useful when you have only 1 value in the clipboard and you want to set the value of many cells to that value. You may want to submit a feature request to add a property to control this. For now you would probably need to handle the ExecutingCommand event and watch for the e.Command being DataPresenterCommands.Paste. When that happens you would change the SelectedItems.Cells to be just a single cell or whatever you want to target.