SelectionMode="Extended"
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; namespace FileListGrabber { /// <summary> /// Interaction logic for Window1.xaml /// </summary> public partial class Window1 : Window { public Window1() { InitializeComponent(); MyWindow_Loaded(); } private void MyWindow_Loaded() { // Here I am fetching data from a CSV file var reader = new StreamReader(File.OpenRead(@"C:\BigB.csv")); // List to store data fetched from CSV file List<GetFile> Fetcher = new List<GetFile>(); while (!reader.EndOfStream) { var line = reader.ReadLine(); string[] values = line.Split(','); Fetcher.Add(new GetFile { FileName = values[0], FileExtension = values[1], FilePath = values[2] } ); } myGridView1.ItemsSource = Fetcher; } public class GetFile { public string FileName { get; set; } public string FileExtension { get; set; } public string FilePath { get; set; } } private void buttonRight_Click(object sender, RoutedEventArgs e) { // Code to move row in myGridView2 } private void buttonLeft_Click(object sender, RoutedEventArgs e) { // Code to move row in myGridView1 } } }
GetFile
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)