Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How do I get my listview (datagrid) data from the screen after I have sorted the data on screen

$
0
0

I have a listview and a datagrid inside it that displays data on the screen. On the screen I can sort the data columns.

I want to be able to click a button and copy the data from the table on screen to the clipboard so that it can be pasted into Excel.

How would I do this? I have a button event and inside the even method I call the listview element which works as long as I don't sort the data. if I sort the data the listview object still has the data in the original order, its not sorted. How do I get the sorted data?


chuckdawit


Viewing all articles
Browse latest Browse all 18858

Trending Articles