472,784 Members | 959 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Problem with big datatable

Hi everybody.
I have a plain text file and I read row by row after that put it into
datatable (one cell contains one character). So this Datatable size can be
50,000x50,000 or more than. After that I bind this datatable to datagrid.
Everything is ok until the datatable > 2,000x2,000 . My program runs very
slowly with big datatable, especially when read from file to datatable .
I tried to use ArrayList and Array Charracter to instead of Datatable.But I
don't know how to bind ArrayList or Array char to datagrid.
Could you give me a solution ?
Thank you very much.
Jul 21 '05 #1
4 1852
guy
50,000 columns?

could you please explain how and why you need this many columns and who can
read that many?

guy
"mtnhan" wrote:
Hi everybody.
I have a plain text file and I read row by row after that put it into
datatable (one cell contains one character). So this Datatable size can be
50,000x50,000 or more than. After that I bind this datatable to datagrid.
Everything is ok until the datatable > 2,000x2,000 . My program runs very
slowly with big datatable, especially when read from file to datatable .
I tried to use ArrayList and Array Charracter to instead of Datatable.But I
don't know how to bind ArrayList or Array char to datagrid.
Could you give me a solution ?
Thank you very much.

Jul 21 '05 #2
Because, I read a text file and put it into datatable.so You can't know how
long is a Row.
Jul 21 '05 #3
guy
perhaps you could explain what you are trying to achieve after reading this
text file?
why do you need to use a datagrid?

guy

"mtnhan" wrote:
Because, I read a text file and put it into datatable.so You can't know how
long is a Row.

Jul 21 '05 #4
My program is like Excel, after read from text file. I use datagrid to show
it. And User can change data on datagrid.
for example: User can Cut,Paste,Copy,Del... Column, Row or block Cell.. .
Drag and drop Column.....
So, I realize that datagrid is good.
Do you think so ?
Thanks

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Emerson | last post by:
The following assumes a System.Windows.Forms.DataGrid with a System.Data.DataTable set as the DataSource. I'm programming in C# Here's my scenario I click in a cell on a DataGrid. I enter some...
3
by: Newbie | last post by:
I am using a Datagrid to show the contents of a DataTable. But it seems like the Datagrid is not getting the contents of the Datatable when the button ( btnAddAnotherLaborCategory) is clicked. ...
10
by: Saso Zagoranski | last post by:
hi, this is not actually a C# problem but since this is the only newsgroup I follow I decided to post my question here (please tell me where to post this next time if you think this post...
8
by: Inigo Jimenez | last post by:
I have an ASP .net web application installed in a Windows 2003 server. This web application has a webform that has a Datagrid. This Datagrid is filled with the data of a SQL table. I have a...
4
by: The Alchemist | last post by:
I am having a problem with a dynamically-generated Datagrid. It is important to point out that this problem does not exist with a design-time created Datagrid, but only with a dynamically generated...
1
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry =...
1
by: sapkal.manish | last post by:
Question : How can I find actual row position of DataTable in DataGridView when DataTable is sorted / My source code like this Private WithEvent dgvInwDet as new DataGridView Private...
4
by: Aryan | last post by:
Hi, I am having problem with DataTable.Select() method. I am using ASP.NET 2.0. I have DataSet which reads data from XML file using DataSet.ReadXML(). Now this dataset has various datatable,...
7
by: Vlado Jasovic | last post by:
Hello, I'm using typed dataset for databinding to windows controls and I'm having some problems. I'm trying to move all business logic to datatable column_changing events and the problem that...
2
by: tomash | last post by:
Hi! I ve got two tables in Access 2007. I want to update a field of DataTable from another table, DataSumTable when two of their fields equals. ( the fields : Name and Period) I tried this...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.