My doubt arises since I try to paste the data of "n" columns and "n" rows. Since I'm trying with ClipBoard but it does not hit me the information I have in the clipboard.
private void PegarBtn_Click(object sender, RoutedEventArgs e)
{
try
{
var text = Clipboard.GetData(DataFormats.Text) as string;
if (string.IsNullOrWhiteSpace(text))
return;
string[] lines = text.Split(new string[] { System.Environment.NewLine }, StringSplitOptions.None);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Paste failed", MessageBoxButton.OK);
}
}