473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Exporting to Excel from DataGridView

Hello guys and gals.
As always any help is much appreciated.
I am at a dilema. I am filling a datagridview with very lengthy results. Roughly 60k rows on average. I am filling them via an oracle database using a table adapter. The records then have a filter placed on them in the datagridview so the results displayed are a bit different.
My problem: I built an export to excel function which populated a dataset and then red through it and wrote to excel. Bad idea with the amount of records I am using. I tried just writing the records straight to a csv file using streamwriter but I don't very much like this way.
My proposal: I would like to fill an array from the datagridview and then be able to dump the array into excel.However I am having some trouble finding examples on creating an array from a datagridview.
If anyone has encountered this problem or can suggest examples I would very much appreciate it.

Thanks
Jul 20 '10 #1
0 1043

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: jsudo | last post by:
I have a Access database with a large amount of records (close to 500,000) that I would like to export to Excel. I found out that Excel has the capability of of about 65,000 rows so I know I...
1
by: s_a_ravi | last post by:
hi, I want to export the data from datagrid and i dont want to wait upt the users to be prompted for save as dialog box to save the excel. i should saved in the client . Pls help me in that....
2
by: amitshinde02 | last post by:
Hi Experts, I have been struggling on this problem since last one month. I have a huge Excel sheet (Not well formatted) with around 10000 records or more. with around 60 fields. I want to...
0
by: genojoe | last post by:
I have a 4 column, 6 row Excel sheet with all cells formatted for text: 1 1 a a 2 2 b b 3 3 c c a 4 d 1 b 5 e 2 c 6 f 3 I have the following schema.ini:
1
by: theheathergirl | last post by:
I have a page that has a button and it exports fine on the laptop but when I drop it on the server and hit it from a client machine on the LAN (https) it gives me an explorer error that it cannot...
1
by: Vinodkannan G | last post by:
we need some help or tools to upload the excel sheets directly into my DB thru html interface.Your help is verymuch appreciated.
6
by: JHNielson | last post by:
I have a db that exports a file as an Excel. I want users to be able to make changes to that excel and then re-import it. I am running into a problem, I want users to see the Logical Names...
5
by: sranilp | last post by:
Hi All, I am trying to copy data from Excel to powerpoint,is it possible to do that. Can anybody help me on this how to do? Thanks, Anil
2
Lokean
by: Lokean | last post by:
I have a function that exports the DGview to excel one cell at a time, it gets the job done, but not very quickly. Is there a way to export a datagridview's contents to Excel in a way other than...
2
jamesd0142
by: jamesd0142 | last post by:
Hey how do i go about exporting the contents of a datagridview to a .csv file. can any point me in the right way? Thanks
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.