Пример #1
0
        public void BaseDataGrid_Pasting(object sender, GridViewClipboardEventArgs e)
        {
            IDataObject dataObj         = Clipboard.GetDataObject();
            string      clipboardString = (string)dataObj.GetData(DataFormats.Text);

            string[] lines = clipboardString.Split(new string[] { "\r\n" }, StringSplitOptions.None);
            if (lines.Length > 200)
            {
                RadWindow.Alert(new DialogParameters
                {
                    Content = "La cantidad de filas a pegar excede el máximo permitido (200). \n" +
                              "Utilice la opción Gestión de Datos/Importar datos desde Excel para \n" +
                              "importar la información deseada.",
                    Owner = Application.Current.MainWindow
                });
                e.Cancel = true;
            }
        }
Пример #2
0
 private void Dgg_Copying(object sender, GridViewClipboardEventArgs e)
 {
 }