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

Strange happenings in my DataGrid

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 leave the second one it moves to a new
line (through the 3rd one). I'm trying to figure out why this behavior is
happening but I can't figure out how to trap what's causes it. To make this
even stranger of a problem, if I break point somewhere in the process of
leaving the first combo box, everthing work great. This makes it sound like
a timing issue, which is just freakin me out. Any thought where I can start
to break down this problem?

On a side note where would I trap the "TAB" itself. I can catch leaving the
the inherited combobox and also catch the keyup event for the combobox, but
the keyup event doesn't get fired when you hit tab. Also the datagrid.keyup
event doesn't get fired when you hit "TAB" so where can I trap that event?

thanks
Chris
Nov 21 '05 #1
1 1111
Chris,

The combobox has a lot of bugs, one of the bugs is in my opinion that it
goes in my idea in certain situations completly out of scope. However I
never saw this as bug on MSDN, so I am not sure if it was when I had that
problem my fault or a bug.

The situation when that happens with me is by instance when the combobox is
initializing. Therefore are you sure you are not initializing in the place
where you use the first combobox. Or better that all datasources and members
are right set when you come to the first comboboxcolumn?

Just to get an idea.

Cor

"Chris" <chris@No_Spam_Please.com>
..
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 leave the second
one it moves to a new line (through the 3rd one). I'm trying to figure
out why this behavior is happening but I can't figure out how to trap
what's causes it. To make this even stranger of a problem, if I break
point somewhere in the process of leaving the first combo box, everthing
work great. This makes it sound like a timing issue, which is just
freakin me out. Any thought where I can start to break down this problem?

On a side note where would I trap the "TAB" itself. I can catch leaving
the the inherited combobox and also catch the keyup event for the
combobox, but the keyup event doesn't get fired when you hit tab. Also
the datagrid.keyup event doesn't get fired when you hit "TAB" so where can
I trap that event?

thanks
Chris

Nov 21 '05 #2

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

Similar topics

2
by: Joshua S. Gabrielson | last post by:
Greetings, My SQL 2000 Server has been acting strange lately. Someone has gone into the server and changed the SA password. When I go to change the password back to sa, i then verify it and it...
0
by: elime | last post by:
Hi all I have a strange behaving on some PC with my DataGrid. It only occurs on some PC, on others it works perfectly fine. ->(same ..net version installed) it's very confusing. starting...
2
by: michele | last post by:
Hi, i'm using a datagrid control in my webform, with AutoGenerateColumns=false; it work very well if EnableViewState=true; including paging and sorting, but this cause a big performance issue, so...
1
by: Kepler | last post by:
I'm fighting a really strange bug that involves both a DataGrid and a Repeater disappearing on postback. The strange thing is that I've distilled the problem down to a simple program, that...
2
by: Tim_Mac | last post by:
hi, i have an aspx page which dynamically loads a user control and adds it to a placeholder. the control is recreated and added to the placeholder for postbacks as well. the user control...
2
by: sosh | last post by:
Hi, I'm having a strange problem with the update function of a datagrid: I have a datagrid, the first column lists item names from a database. Second column is an EditCommandColumn, and then I...
1
by: Lurc | last post by:
Hi all, One field of Access table is date/time type, and format is long time. In VB.NET, as this table linked to a datagrid, a strange date 12-30-1899 is shown instead of the time expected....
2
by: Antonio | last post by:
Good morning, everyone. Here is the strange behavior: I have a datagrid (dgPIs) with paging enabled. When I click to view any page in the grid, it runs the private void lnkIPReg method,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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
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...
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...

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.