Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142029 | Jan 15,2019 10:37 PM UTC | Jan 16,2019 09:19 AM UTC | UWP | 1 |
![]() |
Tags: SfCellGrid |
grid.Model.ClipboardCopy += Model_ClipboardCopy;
grid.Model.ClipboardPaste += Model_ClipboardPaste;
private void Model_ClipboardCopy(object sender, GridCutPasteEventArgs e)
{
copiedRange = e.Range;
}
private void Model_ClipboardPaste(object sender, GridCutPasteEventArgs e)
{
//Updating the copied values in the list.
List<string> values = new List<string>();
for(int i = copiedRange.Top; i <= copiedRange.Bottom; i++)
{
for (int j = copiedRange.Left; j <= copiedRange.Right; j++)
values.Add(grid.Model[i, j].CellValue.ToString());
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.