473,387 Members | 1,597 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,387 software developers and data experts.

Scrolling in DataGridView in Visual Studio 2005

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.
Jul 21 '05 #1
1 5562
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/produc...f-ee26b6f1ad21
--
Thanks
Arvind

Jul 21 '05 #2

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

Similar topics

1
by: Arvind | last post by:
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...
6
by: dbuchanan | last post by:
Hello, Is this a bug? Is there some kind of work around? I want to add default values for a few columns in my datagridview I found the "DefaultValuesNeeded" event for the datagridview I...
1
by: ME | last post by:
I was running into a problem with the DataGridView while binding it to an object Collection. I got it working and I thought others might like to know how. -------------- Problem -------------...
10
by: steve | last post by:
Hi All I would like to be able to change the cell borders on certain cells to none at runtime to make a group of cells appear to be merged I have tried the following in the cellformatting...
2
by: plmanikandan | last post by:
Hi, I am using .net framework2.0,Visual Studio 2005.I need to bind the hash table to datagridview.Is it possible I am having class Person class person { public int no; public string name; }
3
by: Daniel Manes | last post by:
I need a strategy to debug this situation... I can't put all the code involved, but here are some of the critical lines with comments: ------------------------- Private _parentDataCell As...
6
by: Bill Nguyen | last post by:
I tried almost everything ..Rows.clear() ..rowcount = 0 and the rows in a datagridview still not cleared I populated the Datagridview manually using Row.Add Any help is greatly appreciated ...
0
by: =?Utf-8?B?SmltIFdhbHNo?= | last post by:
I am a .NET newbie, specifically WinForms. I have a simple Winform for which I have a "How To" question: My WinForm app will display data from a FoxPro database, two tables in particular:...
4
by: obrienkev | last post by:
Hi all, How do I customise the column headers style in the datagridview? I change the properties for this control in Visual Studio but they have no effect - only the text is changed. Unable to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.