473,388 Members | 1,390 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,388 software developers and data experts.

Manipulating records from dataset

Hi! I am designing an application, and I need some pointers. I have a
database that has 5 tables: a table "Items" and 4 other table that has
relationship to "Item". I have to retreive all the records, and browse
through it. I know how to populate a dataset with all the records, but what
I need to know is How to browse through the record and display them in
textboxes on a form.

Let's say I have a form with 5 textboxes. When the form load, I setup a
connection, a dataadapter and a dataset. I am able to display the first row
returned, but when it comes to displaying the next records, I dont know
how.... I have 4 buttons to broswse: "FIRST", "PREVIOUS", "NEXT", "LAST" and
I don't know how to be able to access the dataset in the buitton event....
how do I have to declare the dataset and everything....

I know it would be something like
file.lblLatin.Text =
dstPlant.Tables("tblplant").Rows(actual_row+1)("la tin_name").ToString

but I dont know what to do to be able to access the dataset... do I have to
setup another dataset in each of the four buttons I use to browse... Do I
have to use a function?? Please I need help, I've been working on this for
more than a week and I can't firgure it out.... Thank you! Help is REALLY
appreciated!!!!!!

Jean Christophe Avard
Nov 21 '05 #1
1 1161
Jean,

I saw we had not a sample on our website for this, and I had it not complete
some where else, so I made one,

Can you try it.

http://www.windowsformsdatagridhelp....8-2e91e5295e7c

I hope this helps,

Cor
Nov 21 '05 #2

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

Similar topics

5
by: Quentin Huo | last post by:
Hi: I want to retrieve a set of records from the query like: "SELECT * FROM tVisitors WHERE vTime>'1/1/2004'" And then I will put a part of records into a DataSet by: DataSet ds = new...
12
by: jaYPee | last post by:
I have currently using a dataset to access my data from sql server 2000. The dataset contains 3 tables that is related to each other. parent/child/grandchild relationship. My problem is it's very...
3
by: vanvee | last post by:
Hi I have an application for my company's HR department where we store resumes for candidates we receive. I have an application that uses VB.Net and ADO.Net and data bindings (through code) to...
3
by: ASzasz | last post by:
I am new to VB .NET: I can configure a SQL adapter and access data via the datagrid. But how do you access and manipulate data if you do not require the data to show up on a form. I simply want to...
1
by: Scott M. Lyon | last post by:
Part of an application I'm working on needs to manipulate some XML data (in an XML file), by reading the data into a DataSet using the MyDataSet.ReadXML method, and then using MyDataSet.WriteXML to...
7
by: Ryan | last post by:
OK, here's my setup. I have a treeview control that is populated with records from a Product table, and it allows "checking". This is used for my automatic notification system. Say a particular...
1
by: Arpan | last post by:
The following code displays records from a SQL Server 7 database table in a DataList (when the page loads for the first time, all the records under the column named "FName" in the DB table are...
0
by: Ohad Weiss | last post by:
Hi all, I've once asked about that topic. but didn't get an answer. I have a dataset based on 4 tables, which have relation between them. The main table presented to the user on textboxes...
1
by: Bmack500 | last post by:
I'm using the following subroutine. The two different XML files are identical with the exception of three additional records in the second one. One has 450 records, and the other has 453. After...
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: 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
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
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...
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.