473,624 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Exporting to Excel from DataGridView

82 New Member
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 1053

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

Similar topics

5
11684
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 cannot export the whole file at once. What I would like to do is divide the database records into smaller groups that Excel can handle. Does anyone know how I can export a group of records to Excel without getting an error? I tried exporting...
1
1230
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. thanks in advanc -- s_a_rav -----------------------------------------------------------------------
2
1545
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 transfer those rows in sql server as it is. The table in SQL has got diffrenter field names than this excel field names. It has got Title of the Sheet in A1 Sub title in A2.
0
2031
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
1338
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 download the page... The server has some certificates needs that my laptop does not, not sure if that is it. Any help would be awesome. code below: Protected Sub btnExcel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
1
1451
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
1457
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 (Captions) so that they can see names they will recognize. But when I try to import the sheet without headings, I get an Field 'F1' doesn't exist error. My research points ot the problem being that there are no headings... So i wondered if there is a...
5
4023
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
1116
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 cell by cell? Plater, feel free to ignore this one.
2
3034
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
8238
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8174
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8680
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8624
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8336
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7164
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6111
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4082
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.