I have an application linked to a database. I recover the data and display it in a gridView. Now I'm trying to make my button extract my xls or csv file.
My datagrid : My datagrid
my button code extract my button
So, I would like change the
xlWorkSheet.Cells[1, 1] = "Id Action";" //by my database or my datagridView.
to
xlWorkSheet.Cells["all"] = ADOAction.dataGridAction(var1, var2);
To summarize if it was unclear :
- a basic application for extract data on database
- I have one view which shows the datagridview
- I have dataGrid function for display in datagridview with database values
- I have a button on view which extract the
file.xls
but the data is not on my database, it's just a hard data...
So if you have an idea of my problem or even links to me, it will make me happy.
Bye, good day !