Click here to Skip to main content
15,914,392 members
Home / Discussions / C#
   

C#

 
GeneralRe: Update Database from DataSet Question Pin
Rick van Woudenberg23-Jun-07 2:30
Rick van Woudenberg23-Jun-07 2:30 
GeneralRe: Update Database from DataSet Question Pin
Luc Pattyn23-Jun-07 2:46
sitebuilderLuc Pattyn23-Jun-07 2:46 
GeneralRe: Update Database from DataSet Question Pin
PaulPrice24-Jun-07 21:26
PaulPrice24-Jun-07 21:26 
Questionhow to use Rdlc Report to Run Time Pin
imran_Shaikh23-Jun-07 1:08
imran_Shaikh23-Jun-07 1:08 
QuestionCross development platform form embedding. Pin
daviiie23-Jun-07 0:20
daviiie23-Jun-07 0:20 
AnswerRe: Cross development platform form embedding. Pin
Kevin McFarlane23-Jun-07 0:36
Kevin McFarlane23-Jun-07 0:36 
QuestionDataTable performance issue. Pin
syntaxed22-Jun-07 21:58
syntaxed22-Jun-07 21:58 
AnswerRe: DataTable performance issue. Pin
kubben23-Jun-07 1:55
kubben23-Jun-07 1:55 
How much memory do you have in your PC that you are running this on? If things are slowing down it seems to me that you are running out of memory. It doesn't really make sense you are having problems since you are only taking 13 bytes of memory for each row. So even at 80,000 records that doesn't take up that much memory.

Here is my idea. First you can try adding some code like dTable.AcceptChanges
after the Add rows line.

If that doesn't help you could try a totally different approach. The basic xml of a dataset is:
<newdataset>
<dTable>
<column1>1</column1>
<column2>1234567890</column2>
<column3>1</column3>
</dTable>
<dTable>
<column1>2</column1>
<column2>2345678901</column2>
<column3>2</column3>
</dTable>
<dTable>
<column1>3</column1>
<column2>3456789012</column2>
<column3>3</column3>
</dTable>
</newdataset>

If you wrote out a file and saved it, you could then load a dataset with that data. Of course if you have a memory issue, that is not a long of memory this is going to take more memory then your other solution.
If you saved this file you can load it into a dataset, so the code would be something like:
DataSet ds = new DataSet();
ds.Load(@"file.xml");

Assuming you saved the xml above to file.xml

Anyway, just another idea.

Ben
GeneralRe: DataTable performance issue. Pin
syntaxed24-Jun-07 18:58
syntaxed24-Jun-07 18:58 
GeneralRe: DataTable performance issue. Pin
kubben25-Jun-07 1:35
kubben25-Jun-07 1:35 
GeneralRe: DataTable performance issue. Pin
syntaxed25-Jun-07 22:06
syntaxed25-Jun-07 22:06 
AnswerRe: DataTable performance issue. Pin
Malcolm Smart23-Jun-07 12:19
Malcolm Smart23-Jun-07 12:19 
GeneralRe: DataTable performance issue. Pin
syntaxed24-Jun-07 19:02
syntaxed24-Jun-07 19:02 
QuestionPopulating the TreeView control from the SQL server in C# .NET application [modified] Pin
thachil22-Jun-07 21:40
thachil22-Jun-07 21:40 
AnswerRe: Populating the TreeView control from the SQL server in C# .NET application Pin
Christian Graus22-Jun-07 21:42
protectorChristian Graus22-Jun-07 21:42 
GeneralRe: Populating the TreeView control from the SQL server in C# .NET application Pin
thachil22-Jun-07 22:11
thachil22-Jun-07 22:11 
GeneralRe: Populating the TreeView control from the SQL server in C# .NET application Pin
sidbaruah25-Jun-07 2:04
sidbaruah25-Jun-07 2:04 
Questionhow to make windows calculator in c#? Pin
seeng22-Jun-07 15:14
seeng22-Jun-07 15:14 
AnswerRe: how to make windows calculator in c#? Pin
Christian Graus22-Jun-07 15:19
protectorChristian Graus22-Jun-07 15:19 
Questionhow to make T9 dictionary in c#? Pin
seeng22-Jun-07 15:09
seeng22-Jun-07 15:09 
AnswerRe: how to make T9 dictionary in c#? Pin
Christian Graus22-Jun-07 15:19
protectorChristian Graus22-Jun-07 15:19 
GeneralRe: how to make T9 dictionary in c#? Pin
Laubi22-Jun-07 21:11
Laubi22-Jun-07 21:11 
AnswerRe: how to make T9 dictionary in c#? Pin
Laubi22-Jun-07 21:10
Laubi22-Jun-07 21:10 
QuestionResource dlls Pin
Christian Graus22-Jun-07 14:01
protectorChristian Graus22-Jun-07 14:01 
AnswerRe: Resource dlls Pin
Not Active22-Jun-07 15:48
mentorNot Active22-Jun-07 15:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.