ImportGridView trows error

Hi,

On button click I bind a dataset to my gridview




Via a second button I want to export the gridview data to excel file.

The code I have to do is :



However when I click the button to run the excel export code I get following error




Any idea what I am doing wrong?

Thx
Frederik

3 Replies 1 reply marked as answer

KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team September 24, 2020 10:35 AM UTC

Hi Frederik, 

Greetings from Syncfusion. 

You are facing NullReferenceException for the parameter DataSource. We suspect that the DataSource of your DataGrid is not getting loaded with data, and this might be the root cause of the issue. Kindly check this and let us know if the provided information helps. 

Please look into the following link, which might help you. 

Regards, 
Keerthi.

Marked as answer

FG Frederik Gysel September 24, 2020 06:59 PM UTC

Dear,

You were right.
Problem solved, thank you!

Regards
Frederik


KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team September 25, 2020 11:44 AM UTC

Hi Frederik, 

Thanks for the update.  

We are glad that the provided information helped you. Kindly let us know if you need any further assistance. 

Regards, 
Keerthi. 


Loader.
Up arrow icon