473,378 Members | 1,360 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,378 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 3223
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 ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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...

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.