Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
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 May 12th, 2004, 02:28 AM
Authorized User
 
Join Date: Jan 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to creative_eye
Default Getting the location of a Record

I need the position of a perticular record in a perticular table of a DataSet.

For example if the records in the table are:

id Name
1 John
2 Maria
3 Glen
6 Smith
8 Bush
13 Cathy
14 Nina

Now what exectly I need is the exect location of a name in the records. For example if I search for "Bush" then in return I need a number indicating its location i.e. 5

Is it possible ?



 
Old May 12th, 2004, 04:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Sure! u can do it simply, taek a look at
http://samples.gotdotnet.com/quickst...ding.cs&font=3.
HTH, but keep in touch in any problem!

Always:),
Hovik Melkomian.
 
Old May 12th, 2004, 09:46 AM
Registered User
 
Join Date: May 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you are using a DataGrid or a Repeater to display the records, then you can use DataGridItem.ItemIndex or RepeaterItem.ItemIndex to get the row number.

Manish Jadhav






Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete a record row, not just the record. Coby Access VBA 1 April 30th, 2007 06:29 AM
how to add new record as first record in dataset [email protected] ASP.NET 1.0 and 1.1 Professional 4 April 21st, 2006 05:23 AM
Saving a record to a different location Brendan Bartley Access 1 July 30th, 2005 01:40 AM
Record locking - user needs the next queued record cbtoolkit SQL Server 2000 0 December 6th, 2004 08:29 AM
Sub record not associating with Main record Ron V Access 1 August 31st, 2004 09:21 AM





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