المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : datagridview to excell



C# Programming
06-14-2009, 08:00 PM
Hello,
I want to convert datagridview to excell.
I need to create a button that will do it.
Every time that i click on it , it will create a new worksheet (in a specified workboox- or a file).
Also i need it to autoresize the columns width (as in the datagrid) and change the background of the headercells to some color (doesn't matter which).
How can i do it?