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
2385
the records number in clipboard
posted

How can I get the number of records copied in clipboard?

It looks I can not use Infragistics.Windows.DataPresenter.ClipboardData directly.

 

Parents
No Data
Reply
  • 69686
    Suggested Answer
    posted

    Hello,

    You can get them from the ClipboardCopying event and the GetSourceRecord method :

    private void XamDataGrid_ClipboardCopying(object sender, Infragistics.Windows.DataPresenter.Events.ClipboardCopyingEventArgs e)

            {

                int copiedRecordsCount = e.RecordCount;

                for (int i = 0; i < copiedRecordsCount; i++)

                {

                    System.Diagnostics.Debug.WriteLine(e.GetSourceRecord(i));

                }

            }

Children