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

Scroll Bar should move down automatically

hi,
In the datagridview, is it possible that when a datagridview loads it
scrolls down automatically to show the last rows?

I have a datagridview, in which the user has to modify one the columns of
the LAST row every time it loads, so he has to always
scroll down, which is a bit of pain.

Is there any event that i can catch.

TIA
Irfan
Oct 19 '06 #1
2 1897
Something like

dataGrid1.Select(dataSet1.Tables[0].Rows.Count);
dataGrid1.CurrentRowIndex = dataSet1.Tables[0].Rows.Count;
dataGrid1.Focus();

should probably move focus to the last row of the grid

--
--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
"Irfan" <ir***@asc-ltd.co.ukwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
hi,
In the datagridview, is it possible that when a datagridview loads it
scrolls down automatically to show the last rows?

I have a datagridview, in which the user has to modify one the columns of
the LAST row every time it loads, so he has to always
scroll down, which is a bit of pain.

Is there any event that i can catch.

TIA
Irfan


Oct 19 '06 #2
thanks
It was similar to that.

Datagridview1.FirstDisplayedScrollingRowIndex = dataGridview1.rows.count-1
Irfan


"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:Sp******************************@eclipse.net. uk...
Something like

dataGrid1.Select(dataSet1.Tables[0].Rows.Count);
dataGrid1.CurrentRowIndex = dataSet1.Tables[0].Rows.Count;
dataGrid1.Focus();

should probably move focus to the last row of the grid

--
--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
"Irfan" <ir***@asc-ltd.co.ukwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>hi,
In the datagridview, is it possible that when a datagridview loads it
scrolls down automatically to show the last rows?

I have a datagridview, in which the user has to modify one the columns of
the LAST row every time it loads, so he has to always
scroll down, which is a bit of pain.

Is there any event that i can catch.

TIA
Irfan



Oct 20 '06 #3

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

Similar topics

0
by: Tim | last post by:
Hello, I'm using Access 2000 and I have a main form with a large subform. When tabbing through the fields on the main from, the screen automatically tabs down, as I like, but when I tab into the...
2
by: Richard Hollenbeck | last post by:
Is there a way in Access that I could make it so that the end user could scroll up and down, or right and left, depending on the arrow keys depressed? In form view, instead of going left to right...
0
by: James | last post by:
I need to use the keyboard to scroll up/down my dtagrid. I need to map the 1. up/down arrow keys to move up/down one recored at a time 2. Page Up/Down keys to move up/down one page at a time...
3
by: Steve | last post by:
I want to force a window to scroll and am finding this to be an impossibly difficult task. First I tried using the API functions ScrollWindow and ScrollWindowEx but they do not work. The portion...
4
by: Marlene A. Roman | last post by:
Is there a way that when I show some fields below that don't fit in the screen, it automatically makes a scroll down event so the user doesn't have to scroll down the page by his own? Thanks in...
2
by: Amrit | last post by:
Hi Can anyone help me? I would really appreciate I am trying to scroll Groupboxes inside the panel when i hold panel's scroll bar and drag up and down. Such as Internet explorer where you can hold...
2
by: Kevin | last post by:
Hi! Im writing a simple chat, using ReachTextBox as chat viewer, but when the RTB begins to scroll, the scrollbar not scroll down. How can i do scroll down automatically? Thanks!
4
bats fur eels
by: bats fur eels | last post by:
Hi, I was hoping if anyone knew if it were possible using HTML or other basic scripts that enable you to lets say, scroll the webpage down a few margins upon load of page or script. So that it will...
6
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I'm using the VScrollBar and set it as follow: m_vScrollBar.Minimum = -19602; m_vScrollBar.Maximum = 0; m_vScrollBar.SmallChange = 1; m_vScrollBar.LargeChange = 1089; m_vScrollBar.Value =...
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
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.