473,466 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Get Viewing Row in DataGrid

Jck
Could someone let me know how to get the current top row in a datagrid that
is viewing by the user please?

I got a datagrid connected with a datatable with 5000 records. I can use the
CurrentCell to get the focus cell. However, when the user scroll to other
pages without clicking on a cell. I am unable to know where the user is
viewing.

Thanks in advance!
Aug 3 '06 #1
1 1132

Jck wrote:
Could someone let me know how to get the current top row in a datagrid that
is viewing by the user please?

I got a datagrid connected with a datatable with 5000 records. I can use the
CurrentCell to get the focus cell. However, when the user scroll to other
pages without clicking on a cell. I am unable to know where the user is
viewing.

Thanks in advance!
I am not sure how this is done with DataGrids. For DataGridViews,
however, there is a property called FirstDisplayedCell.

This is just a guess. With DataGrid, if the currently selected row goes
off the visible area, the next control is selected. Reselecting the
DataGrid may select the first visible record of the DataGrid. Then,
between the selected row and the VisibileRowCount property, you may be
able to discern which rows are viewable.

B.

Aug 4 '06 #2

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

Similar topics

0
by: George Durzi | last post by:
Hey all, I finally found the necessary resources in the Exchange 2003 SDK to "pull" Contacts out of Exchange and display them on a WebForm. I have been trying to do this forever, and couldn't...
0
by: Ricardo Magalhaes | last post by:
Hi, I´m showing a paradox data into datagrid asp net control and the words are without correct accentuation The driver used was microsoft paradox driver (odbcjt32.dll - version 4.00.634) With...
1
by: jeguillo | last post by:
I am trying to retrieve the text within each cell in a datagrid in order to change the color of each cell, depending on the value within that cell. This works fine on the cells that are bound...
1
by: jwogick | last post by:
I'm hoping someone can help me! I just have a simple form with a datagrid displaying child records from a dataset that contains two related tables Parent table>Clients Child table>cases. using the...
10
by: NH | last post by:
I have a girdview with paging enabled. How can I add a message in the footer to say "Viewing records 1-15 of 45" etc Thanks
1
by: rraw | last post by:
hi!! i want to view a set of record in datagrid.i am using store procedure i am able to execute the stored procedure . the only problem is getting those records/data on a datagrid need help.
12
bartonc
by: bartonc | last post by:
Here's something cool that I just discovered (on IE7, I wonder about the others): I was viewing a long code block with some really long lines in it. Since the horizontal scroll bar was WAY of my...
0
by: rhepsi | last post by:
Hii frnds, I have a datagrid when i double click it, it retrieves me to another form with all the details ,now when i click on close i have a confirmation box yes /no. if i click on yes i cud see...
0
by: snt | last post by:
Hi, I have many pages with datagrid. But, when I am viewing a few pages in design mode, the IDE starts expanding the datagrid by itself and hangs subsequently. Can anyone help me with this? ...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.