This code example shows how to export a Telerik WinForms grid to Excel. The example is complete. To use it:
- Drop a RadGridView onto a form (don't add any columns or do any formatting) and copy the code below into the code behind.
- Drop a button on the form to handle the export functionality
- Add a reference to TelerikData.dll to your project