Jacksparrow87
Technical User
Hi people,
Just a easy simple question really, I have a datagrid and 2 buttons. What I do is select some search criteria and then click on the search button which displays the data in the datagrid.
What I need help with is the 2nd button which is called 'Save' what I want to do is when this button is clicked, I want to take the information from the datagrid (headers, the data inside etc) and save it in excel. Ideally what I would prefer is a save dialog box to appear and the default location to be coded (C:\Test for the moment) and I can change this later on.
Is this possible? If so could you give me an example of some coding please?
Please let me know. Thanks
Just a easy simple question really, I have a datagrid and 2 buttons. What I do is select some search criteria and then click on the search button which displays the data in the datagrid.
What I need help with is the 2nd button which is called 'Save' what I want to do is when this button is clicked, I want to take the information from the datagrid (headers, the data inside etc) and save it in excel. Ideally what I would prefer is a save dialog box to appear and the default location to be coded (C:\Test for the moment) and I can change this later on.
Is this possible? If so could you give me an example of some coding please?
Please let me know. Thanks