Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1410
"Paste new rows" command
posted

Hello

What I'm trying to do, and cannot find the way, is that I want to have 2 buttons on the toolbar:

1. Paste

2. Paste new rows

The functionality is preety straightforward. I've implemented the first by:

                    <MenuItem Header="Paste" Command="{x:Static igDP:DataPresenterCommands.Paste}" CommandTarget="{Binding ElementName=MyGrid}" />

However, I cannot find the way to implement 2nd option (in that case, the behaviour should be the same as If I select the "add new record" indicator and clicked paste).

I tried to combine these 2 commands, simply by selecting the first record. But first record is not the "Add record" indicator, but first data record.

 

How could I implement this?

Thx in advance.

Parents Reply Children
No Data