473,399 Members | 2,858 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,399 software developers and data experts.

First Record in DataView

Hi,

How can I retrieve the first record in a dataview:

Dim dvNumber as New DataView(tbllist)
dvNumber.RowFilter="PageType='Parag'"
datagrid1.DataSource=dvNumber

So normally with a select I would use Top 1

Thanks

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #1
1 1572
Hi, I figured it out:

dvNumber(0)("PageNumber")

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #2

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

Similar topics

1
by: Dave Bailey | last post by:
I am using the following code on a web form public DataView CreateEquipmentDataSource( string equipConnect = "Provider=\"MSDAORA.1\";" + GetConnectionString() + "" string equipSelect = "Select...
4
by: Jim Heimer | last post by:
When I use the dataview.rowfilter and I try to display the field value of the first row, the code doesn't seem to show the first row AFTER the rowfilter. This is my code: DataView...
5
by: Alan | last post by:
I want search for a record in a table that a record's field value matching a particular value eg. customer name. What property or method of data binding manager or dataset on a form has this ?
3
by: Mark Vergara | last post by:
Hi to all, I want to know if there is a way of getting the position of the particular record in the dataset aside from CurrencyManger.position let say for example we have a record.. cntID ...
1
by: Rom | last post by:
Hi, How can I find a record in a dataset. I have 1 textbox name txtfind. my sql statement should be like this.."select * from employees where emp_id= txtfind.text" then if found it should bind the...
3
by: HS1 | last post by:
Hello To present (and manipulate) data in a table, I use an DataGrid and a DataSet "ds" DataGrid1.DataSource = ds However, to search a record in this DataGrid, I have to use DataView "dv" ...
5
by: Maria Anthonsen | last post by:
I have filled a datagrid with data from a dataset. The dataset was filled with a dataadapter - and I used the wizard to create insert, update, delete commands. I would like to prevent the user...
0
by: HS1 | last post by:
Hello all I use a DataGrid to present the data of an Access database table ("Clients") using DataAdapter and DataSet (ds) -----------------------------------------------------------...
0
by: kin9kelvin | last post by:
Hi! I have created a form with 2 subforms in it. One of subforms is in a form view and the other subform is in dataview. I was wondering whether i am able to doubleclick on a record in the...
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: 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...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.