Hi , I'm a new blood in programs.
recently, I tried to build a RadGridView and fill in data from database
And I create a button if the user wanna export the data in RadGridView
RadGridView rgv = new RadGridView();
rgv.DataSource = dt;
GridViewSpreadExport spreadExporter = new GridViewSpreadExport(rgv);
spreadExporter.ExportVisualSettings = true;
SpreadExportRenderer exportRenderer = new SpreadExportRenderer();
spreadExporter.RunExport(filegoalpath, exportRenderer);
here is the method i used , dt has data i wanna export .
so i used rgv to keep the data i wanna export and use these four program to export an excel
but the program always tell me that my rgv is null and check it cant be null
after i checked , i found that rgv.DataSource really keeped my data in datatable
but rgv.Columns.Count is 0 and rgv.Rows.Count is 0 ,too.
actually this is my first time to write a program in C#
but i really want to learn it well
so ... hope you can help me to solve my problem :(
plz !!!!