-
Maryam,
If I could still persuade you on using the spreadsheet control, check out this example. It has no code in it, and you can export it out to excel. The beauty of it is that when you export it, it comes with the formatting that's in the spreadsheet control. So you need no code to do the formatting. Which is VERY handy. Formatting an excel spreadsheet by code is cumbersome and annoying.
You can connect to a DataSource with the spreadsheet control, or you can import XLM, CSV, and HTML data from a URL. Check out "Commands and Options" when you right-click the spreadsheet control while in design mode (or click the toolbar button) and play around. You can even remove the tool bar if you want, along with the Column Letters and Row numbers. Making it look similar to the DataGrid, but it's more flexible.
Please take a look.
Thanks,
Joseph

New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules