I am trying to work with a csv file in a DataGrid. The file is made up of around 5000 rows. The program takes quite a few minutes before showing the csv file data. My code is as follow:
//_csvGrid is the datagrid
//FilePath is the path for the csv file
_csvGrid.AutoGenerateColumns = true;
dsBuilder dsb = new dsBuilder(FilePath);
_csvGrid.ItemsSource = dsb.buildDS().Tables[0].DefaultView;
Also, once the datagrid finished loading, the interaction is very slow. Any idea on how to speed things up?