Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

Scrolling in DataGridView in Visual Studio 2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arvind - 22 Dec 2004 12:49 GMT
Hi

I edit a cell in a DataGridView, and then would move to another cell
in the DataGridView using mouse. Then the DataGridView as of now does
scroll down to the last visited cell. But when I try to edit the same
last visited cell, focus gets shifted to the first few visible rows as
per the dimensions set for the DataGridView. To be exact it goes to
the cell in the first row, and the same column.

If I can say it this way, I would like to see same number of Rows
visible at the top, after scrolling down to the selected row / cell
using mouse on the GridView and even before the scrolling was done.


I have tried out many weird ways to do it, but none of them does the
job for me. A thing to add, I refresh my DataGridView every time, I do
a cell value change, which would be followed by cell validating event
and cell Error Check. I get the last recent edited cell in a moment,
but scrolling to the same seems to be a problem for me. I tried
capturing every other event here, but they do not give any solution.

If any of you have worked on the same, let me know any ideas you have
regarding the same.

--
Thanks
Arvind

Note:
In DataGrid of VS 2005 and VS 2003, we have a protected method
GridVScrolled, which can be over written in its derived class and then
we can use this to scroll to a particular row in the DataGrid. Refer
to: http://www.thescarms.com/dotNet/ScrollDataGrid.asp for more
information on the same implementation.
khasibhatla@gmail.com - 29 Dec 2004 06:23 GMT
Microsoft has confirmed that this is bug with VS 2005. So we can keep
our fingers crossed till they give us the solution.

Refer the link for more details
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=2ce60
503-bf84-44d0-af9f-ee26b6f1ad21

--
Thanks
Arvind

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.