so i'm trying to export the contents in a DataGridView
to an Excel
File. And for me to do this, i am using SpreadSheetLight
for C#. But as far as reading the Sample Codes and Tutorials go, they're only demonstrating manual Excel content creation:
using (SLDocument sl = new SLDocument())
{
sl.SetCellValue("B3", "It costs what for a Jimmy Choo?!?");
sl.SaveAs("MahNewShoes.xlsx");
}
but what i want to achieve is to convert a whole DataGridView into SpreadSheetLight's Excel. If i am using a loop and loop the whole rows and columns of the DataGridView, how is it possible to set the Columns to A, B, C ... AA, BB, CC
given that the loop uses integers ?.
hoping someone can give me a walk through here. thanks