|
-
Nov 15th, 2005, 09:57 PM
#1
Thread Starter
Fanatic Member
reply clearly
Hi,
I Have Two Textboxes And One Button In My Form .
I Created Table Named As Emp Which Has Two Columns Such As Name ,age,
My Problem Is If I Click That Button One Row Only Retreiving,so I Created One More Button Named As Next And If I Click That Next Button All The Row Has To Be Retreive From The Table By Clicking That Next Button Each Time. I Connected My Database With Vb.net Using Odbc Connection.
So If I Click Next One Record Has To Fetch, Again If I Click Next Another Record Has To Fetch, I Need Coding For That.
Mendhak replied the following to do
Assuming you're using a dataset, create an integer variable which stores the current position in the dataset, like
TextBox1.Text = ds.Tables(0).Rows(i).Item(0).ToString()
Where i is the variable.
In your next button's click event, you can increment i and then redisplay the text in the textbox.
this reply is not clear and i am not using the dataset,please reply clearly
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|