Click here to Skip to main content
11,496,146 members (704 online)
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
See more: .NET Silverlight
Hello Friends,

I am new and this is my first post.
Can someone please help me with code for exporting selected rows from silverlight gridview to excel.
Note: checkboxes solution doesn't work bcos if grid has too many rows...and in case if user has to select certain rows then selecting the checkbox for each would be painful.
So please suggest solution without checkboxes. User will select rows of the silverlight gridview using mouse/keyboard.

Thanks.
Posted 19-Mar-13 17:58pm

1 solution

Some of these links will surely help you -
http://weblogs.asp.net/stanleygu/archive/2009/12/16/export-silverlight-datagrid-to-excel-xml.aspx[^]
Export Silverlight DataGrid to Excel XML/CSV[^]

If you use the Infragistics grid, you will get inbuilt export to excel features.
  Permalink  
Comments
Shivaatcp at 20-Mar-13 11:09am
   
thanks @ Abhinav S. I will try.
Shivaatcp at 20-Mar-13 20:49pm
   
suggested solution will export all rows of the grid to excel. but I need only selected rows (using mouse/keyboard) exported to excel.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 RyanDev 230
1 Sergey Alexandrovich Kryukov 114
2 Richard Deeming 100
3 OriginalGriff 89
4 Mostafa Asaduzzaman 59
0 Sergey Alexandrovich Kryukov 10,401
1 OriginalGriff 8,910
2 Sascha Lefèvre 3,899
3 Maciej Los 3,422
4 Richard Deeming 2,600


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 20 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100