473,395 Members | 2,468 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,395 software developers and data experts.

how to fill datagrid faster

I have already done some code to fill the datagrid. my problem is that
the fill method is too slow after executing my code.

here is the scenario.

i have a parent/child form. all is datagrid. one datagrid is a parent
and the other is a child. now when i finish encoding data from the
first datagrid (which is the parent) i have to click the check box
button on that grid and fill the 2nd grid w/ the data from the other
table base on the criteria on the first table. i'm using stored
procedure to insert data. but the problem is when i reload the dataset
using the fill method the execution is too slow.

here is my code.
DsStudentCourse1.Tables("SchYrSemCourseJoin").Clea r()
SqlDataAdapter3.Fill(DsStudentCourse1) 'this code makes the
execution slow

this code will clear the data first then fill again so that the newly
inserted record will be refresh.

my question is on how can i speed loading a data on my datagrid.
Nov 21 '05 #1
4 3229
jaYPee,

Faster is a real relative conception.

However in my idea can you get better ask this as well in the newsgroup

microsoft.public.dotnet.framework.adonet

You know of course that this is not to tell you go away here and if I was
you I would surely check any answer here as well.

Problem with your question is that you need to know a lot about your
application, the data your are filling (when it is an immage by instance it
can be terrible slow) and the ammount of rows you are filling.

I hope it helps anyway something.

Cor

"jaYPee" <hi******@yahoo.com>
I have already done some code to fill the datagrid. my problem is that
the fill method is too slow after executing my code.

here is the scenario.

i have a parent/child form. all is datagrid. one datagrid is a parent
and the other is a child. now when i finish encoding data from the
first datagrid (which is the parent) i have to click the check box
button on that grid and fill the 2nd grid w/ the data from the other
table base on the criteria on the first table. i'm using stored
procedure to insert data. but the problem is when i reload the dataset
using the fill method the execution is too slow.

here is my code.
DsStudentCourse1.Tables("SchYrSemCourseJoin").Clea r()
SqlDataAdapter3.Fill(DsStudentCourse1) 'this code makes the
execution slow

this code will clear the data first then fill again so that the newly
inserted record will be refresh.

my question is on how can i speed loading a data on my datagrid.

Nov 21 '05 #2
jaYPee,

Faster is a real relative conception.

However in my idea can you get better ask this as well in the newsgroup

microsoft.public.dotnet.framework.adonet

You know of course that this is not to tell you go away here and if I was
you I would surely check any answer here as well.

Problem with your question is that you need to know a lot about your
application, the data your are filling (when it is an immage by instance it
can be terrible slow) and the ammount of rows you are filling.

I hope it helps anyway something.

Cor

"jaYPee" <hi******@yahoo.com>
I have already done some code to fill the datagrid. my problem is that
the fill method is too slow after executing my code.

here is the scenario.

i have a parent/child form. all is datagrid. one datagrid is a parent
and the other is a child. now when i finish encoding data from the
first datagrid (which is the parent) i have to click the check box
button on that grid and fill the 2nd grid w/ the data from the other
table base on the criteria on the first table. i'm using stored
procedure to insert data. but the problem is when i reload the dataset
using the fill method the execution is too slow.

here is my code.
DsStudentCourse1.Tables("SchYrSemCourseJoin").Clea r()
SqlDataAdapter3.Fill(DsStudentCourse1) 'this code makes the
execution slow

this code will clear the data first then fill again so that the newly
inserted record will be refresh.

my question is on how can i speed loading a data on my datagrid.

Nov 21 '05 #3
jaYPee wrote:
I have already done some code to fill the datagrid. my problem is that
the fill method is too slow after executing my code.

here is the scenario.

i have a parent/child form. all is datagrid. one datagrid is a parent
and the other is a child. now when i finish encoding data from the
first datagrid (which is the parent) i have to click the check box
button on that grid and fill the 2nd grid w/ the data from the other
table base on the criteria on the first table. i'm using stored
procedure to insert data. but the problem is when i reload the dataset
using the fill method the execution is too slow.

here is my code.
DsStudentCourse1.Tables("SchYrSemCourseJoin").Clea r()
SqlDataAdapter3.Fill(DsStudentCourse1) 'this code makes the
execution slow

this code will clear the data first then fill again so that the newly
inserted record will be refresh.

my question is on how can i speed loading a data on my datagrid.


Maybe should look into optimizing your SQL statement. Maybe it already
is, but I've seen loads of people use very inefficient queries.

--
Rinze van Huizen
C-Services Holland b.v.
Nov 21 '05 #4
jaYPee wrote:
I have already done some code to fill the datagrid. my problem is that
the fill method is too slow after executing my code.

here is the scenario.

i have a parent/child form. all is datagrid. one datagrid is a parent
and the other is a child. now when i finish encoding data from the
first datagrid (which is the parent) i have to click the check box
button on that grid and fill the 2nd grid w/ the data from the other
table base on the criteria on the first table. i'm using stored
procedure to insert data. but the problem is when i reload the dataset
using the fill method the execution is too slow.

here is my code.
DsStudentCourse1.Tables("SchYrSemCourseJoin").Clea r()
SqlDataAdapter3.Fill(DsStudentCourse1) 'this code makes the
execution slow

this code will clear the data first then fill again so that the newly
inserted record will be refresh.

my question is on how can i speed loading a data on my datagrid.


Maybe should look into optimizing your SQL statement. Maybe it already
is, but I've seen loads of people use very inefficient queries.

--
Rinze van Huizen
C-Services Holland b.v.
Nov 21 '05 #5

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

Similar topics

5
by: Helixpoint | last post by:
Here is my code: Dim availMach As New ASPNETProduct.machinedb() Dim dstMachList As DataSet dstMachList = availMach.GetAvailMach(theSearchVal, theSearchBy, theMachCode1, theSearchView,...
7
by: ruca | last post by:
Hi, How can I fill a datagrid without accessing to a database or any type of file, only filling with a command button like this: I have 3 textboxes that I must fill, and a button that when...
6
by: JeffB | last post by:
I have tried several different methods of getting a datagrid to fill with information. Below is the code I'm now using. When viewed in the browser and the text box filled with a parameter value...
4
by: Dave Edwards | last post by:
I understand that I can fill a datagrid with multiple queries, but I cannot figure out how to fill a dataset with the same query but run against multiple SQL servers, the query , table structure...
0
by: jaYPee | last post by:
I have already done some code to fill the datagrid. my problem is that the fill method is too slow after executing my code. here is the scenario. i have a parent/child form. all is datagrid....
4
by: jaYPee | last post by:
I have 1 dataset called "dataset1" that contains 2 tables called "course" and "courseload". in my form i have a datagrid. the datasource of this datagrid is "dataset1" and the datamember is...
1
by: Mrozu | last post by:
Hi I need execute SELECT SQL query in DataSet. No in SQL server(da.selectcommand) and fill dataset, only show in datagrid filtered by select-where query records from dataset:) For example I...
2
by: MDB | last post by:
Hello All, I have a data grid that I fill using a dataset. The results of the query has around 15 columns and 500 rows (and growing). The reason I am using the datagrid is so the end users can...
8
by: cj | last post by:
I have a 2003 program that opens a foxpro table via odbc and loads in the data into a dataset. I copied the code into a 2005 program after a long wait it fails with the error ...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.