We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Export to Excell from GridDataControl

Thread ID:





121411 Dec 10,2015 11:42 PM UTC Dec 16,2015 04:34 AM UTC WPF 3
Tags: GridDataControl
Vladimir Culum
Asked On December 10, 2015 11:42 PM UTC


I am relatively new to WPF, and I found this great product. I am running through samples and I have problem with excell export from GridDataControl.
I look at the local sample (Grid Data Control -> Excel Export Demo).

My button for export is allways disabled.

Structure of my UI is that I have ChromelessWindow and inside TabControlExt. Items for TabControlExt are loade dinamically and it loads separate UserControls.
That is workink fine.

In User control I have 2 GridDataControl and for each of them I want to set separate export (2 separate buttons)
Button for export is allways disabled.

Only difference from local sample is CommandParameter Binding (I am not using LayoutControl.Grid)

- ChromelessWindow
-- TabControlExt
---- UserControl
------ GridDataControl

1. Is there a nice way to move excell export to ViewModel and bind to ICommand (other Commands I am binding to ICommand with RelayCommand - http://msdn.microsoft.com/en-us/magazine/dd419663.aspx#id0090030)?

2. My GridDataControl is bind to ObservableCollection. Is there a way to 'export' to excel this collection; just passing collection name or similar?

Thank You.

Sivakumar R [Syncfusion]
Replied On December 14, 2015 01:19 AM UTC

Hi vladimir,

Please find the sample to bind the Exporting with ViewModel command.


Vladimir Culum
Replied On December 14, 2015 01:00 PM UTC

Thank You Sivakumar,

This is working great.

Ayyanar Sasi Kumar Jeyaraj [Syncfusion]
Replied On December 16, 2015 04:34 AM UTC

Hi Vladimir,
Thank you for the update.
Please let us know if you have any further assistance.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon