473,545 Members | 2,627 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataGrid Bugs?

I've been creating my own datagrid control which I'm inheiriting from
the standard datagrid control and I have come across two very
interesting behaviors with the datagrid control.

1. If you are currently editing a cell and use the scroll wheel to
scroll up or down and the editing cell is no longer being shown on the
grid then the grid loses focus and goes to the next control. Is there
some way to have the datagrid to remain focused and still be able to
use the scroll wheel up and down?

2. If the datagrid is too small for all the columns to be displayed in
the datagrid and you're scrolling up or down in the last column it will
jitter back and forth as you move up or down towards a new cell that
wasn't previously displayed on the grid. It forces the far left column
that is currently partially shown in the datagrid to line up with the
left of the datagrid even though I have focus on the last column. When
you then go down or up one more cell the horizontal position goes back
to where it was initially. Is there a way to stop the horizontal
scroll bar to move back and forth as I scroll up and down on the
datagrid without having to make the datagrid big enough so that all of
the columns can be seen?

Nov 21 '05 #1
0 1049

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

Similar topics

9
1725
by: Lina | last post by:
Hi, Can anyone tell me if it is possible to add link buttons to a datagrid that has its source set to a datatable that i have created? i.e i want the user to be able to select a room from various comboboxes and textboxes on my form. when they are satisfied they press OK. the row is then displayed in my datagrid. I now automaticcaly want 2...
0
1964
by: Frosty | last post by:
Hi I am using the VS xsd designer to create a strongly typed dataset. The dataset is apparently successfully created, with no warnings or errors given. Is it not then to be expected that this dataset then should reflect all the details put into the xsd? Somewhere down the line there is not a 1:1 relationship. Be it that .NET is so tightly...
1
1826
by: Marty | last post by:
Is there a way to manually copy an excel cell range to a datagrid column? I am unable to select the whole column and selecting multiple whole records does not work. Thx.
5
2363
by: sdbranum | last post by:
I have been using Visual C#.NET to code a large project having many data adapters, data sets, datagrids, multiple forms with tab pages, each containing various controls (mostly label, text boxes, check boxes, date pickers, combo boxes and datagrids). I have been coding alone on this project for about a year, and I have experienced many...
4
1475
by: Alpha | last post by:
Hi, I've worked with C# for 5 months fixing bugs for appl. done by other programmers. I'm just writing a small C# application by myself for the first time. The database is Access 2000. I've set up the OleConnection and selected the table that I want as a data source for the grid. My quesiton is, how can I display all columns except the...
3
1246
by: Altman | last post by:
I am quite new to VB.net and I am struggling with the datagrid. I want to let the user modify data in the grid and then click the save button and this will update the database. I guess I am having trouble understanding the update command and the parameters. The data is coming from an SQL query on 2 tables, but I will only need to update one...
1
1123
by: Chris | last post by:
Hey, I have a DataGrid that allows for a combobox in a column through a inherited DataGridColumnStyle and a inherited ComboBox. I have 3 of these columns in a row. The overall problem is that when I hit TAB on the first of 3 of these columns the cursor moves into the second and then immideantly leaves and moves to the third box. if you...
3
1305
by: Lars Netzel | last post by:
My question is about how to get more info on what's happening while debugging in this scenario... My cursor is in the last cell of a datagrid row... I press TAB and the CerrentCellChanged is triggered. I have a break point on that grid's CurrentCellChanged and it breaks... I use the Imediate window to check what ColumnIndex the CurrentCell...
5
4718
by: Nick | last post by:
Hey guys, I have 2 events on a windows forms datagrid, the mouse move as well as the double click events. What's happening is that when I double click on a row in the grid, the mouse move event gets triggered and the double click is not identified at all. Is there any way I can invoke the double click when the mouse move also exists?
0
7496
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7685
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7941
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7784
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6014
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5354
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5071
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3485
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1039
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.