Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
| Search | Today's Posts | Mark Forums Read
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 6th, 2003, 07:07 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cairo, , Egypt.
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default How to navigate

hi all,
i am new to ado.net
What i made is: i have filled a dataset using sqladapter so my question is how could i navigate through dataset and while that i fill the text fields which holds the table fields values
another mean:
i need like old ADO how to movenext and moveprevious methods, movefirst, movelast

thanks in advance

Ahmed Ali
Software Developer
__________________
Ahmed Ali
Senior Software Developer
 
Old December 8th, 2003, 10:26 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Usually with ADO.net, you bind the datasource to some control that internally handles the interation of all the data. The DataGrid, DataList and Repeater are examples of such controls. You no longer need to manually iterate thru the rows of a data table.

You'd do something like this:

myDataGrid.DataSource = myDataSet.Tables(0)
myDataGrid.DataBind()

Peter
------------------------------------------------------
Work smarter, not harder.




Similar Threads
Thread Thread Starter Forum Replies Last Post
navigate dataitem in datagrid mvenkatesan VS.NET 2002/2003 0 May 24th, 2007 01:52 AM
how do i navigate from one file to another -VB6 jazzydonald VB How-To 6 May 14th, 2007 02:01 PM
Navigate through nodes abelmirma XML 1 May 7th, 2005 07:32 AM
Navigate through Datagrid Abhinav_jain_mca General .NET 2 September 8th, 2004 01:10 AM
navigate from one webform to another programatical Abhinav_jain_mca General .NET 2 August 3rd, 2004 03:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.