Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
910
Using a grid in a class library
posted

I'm trying to do something a little perverse: I am creating a class that converts a delimited text document into an Excel spreadsheet, with several flags and options that give it a lot of power. 

I created a windows forms app to do this, using ultragrid and ultragridexcelexporter, so that I can create spreadsheets on a machine that doesn't have Excel on it, and now I want to do it in a class which has no form at all. 

How can I (can I?) instantiate a grid programmatically in this class, fill it, export it, without a form?

Alternatively, I guess I could add a form to the class, but ideally I'd rather not.

Thanks.