There seems to be an extra row created, w/ no data after the last row of data is added to the CSV. Not sure what is happening or if there is a setting to not include the last empty row. Just so we are clear, I have a grid with 10 rows in it, but when I look at the csv that is generated from the grid, I have 11 rows.
As you can see by the attached screen shot, there is a 4th row, 1st row is the column headers and the 2nd and 3rd are data.
Here is my sample code
public class MyData { public string C1 { get; set; } public string C2 { get; set; } } void Main() { List<MyData> list = new List<MyData>(); list.Add(new MyData { C1 = "L1C1", C2 = "L1C2"}); list.Add(new MyData { C1 = "L2C1", C2 = "L2C2"}); RadGridView grid = new RadGridView(); grid.BeginUpdate(); grid.AutoGenerateColumns = true; grid.AutoGenerateHierarchy = true; grid.BindingContext = new BindingContext(); grid.DataSource = list; grid.ShowColumnHeaders = true; grid.EndUpdate(); ExportToCSV exporter = new ExportToCSV(grid); exporter.FileExtension = "CSV"; exporter.RunExport($@"C:\Temp\Temp.csv"); }