I'm attempting to select a specific column so that I can set it's width automatically but am having little success. Should I not be able to use MSDN's version of GetRow to select the column from the columns collection instead?
return worksheet.GetFirstChild<SheetData>().Elements<Row>().Where(r => r.RowIndex == rowIndex).First();
return worksheet.GetFirstChild<SheetData>().Elements<Column>().Where(r => r.Min== columnNumber && r.Max == columnNumber).First();
Am I taking the right approach? FWIW I'm aware of how to create the column from scratch and set the width, but that isn't feasible as I don't know what data is going to be inside the columns when I create them in my constructor.