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

Help with Datagrid Events!

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 has and
it's 0 which is good... that means it has jump down to the next row and
focus is in the first cell.
When I then press F5 to jump to the next breakpoint.. it happens again is
breaks in the same place... and the ColumnIndex is now 1... and when I go
out from breakmode... the cursor is in the second cell of the next row..
which means it Skipped the first cell... and that's not acceptable!

The Call stack doesn't give me anything at all here.. and I have no idead
why this is happening,,, can anyone give me a tip on what to do here?

/Lars
Nov 21 '05 #1
3 1296
What is your next breakpoint set on?

Have you tried using F11 to step through each line of code?

You might also try adding conditional breakpoints and have the IDE stop when
the Column index changes or when it is set to a specifc value.

--
Gerry O'Brien
Visual Basic .NET MVP
"Lars Netzel" <no****@doamin.com> wrote in message
news:u9**************@TK2MSFTNGP14.phx.gbl...
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 has and
it's 0 which is good... that means it has jump down to the next row and
focus is in the first cell.
When I then press F5 to jump to the next breakpoint.. it happens again is
breaks in the same place... and the ColumnIndex is now 1... and when I go
out from breakmode... the cursor is in the second cell of the next row..
which means it Skipped the first cell... and that's not acceptable!

The Call stack doesn't give me anything at all here.. and I have no idead
why this is happening,,, can anyone give me a tip on what to do here?

/Lars

Nov 21 '05 #2
Thanx... but I found the solution... It's a bugg in the DataGrid Control.

http://www.dotnet247.com/247reference/msgs/5/25233.aspx

You need to override a Method in the DataGridClass, read on the link below.
Microsoft posts an answer at the bottom.

/Lars Netzel

"Gerry O'Brien [MVP]" <gk******@hotmail.com> wrote in message
news:eI**************@TK2MSFTNGP11.phx.gbl...
What is your next breakpoint set on?

Have you tried using F11 to step through each line of code?

You might also try adding conditional breakpoints and have the IDE stop
when the Column index changes or when it is set to a specifc value.

--
Gerry O'Brien
Visual Basic .NET MVP
"Lars Netzel" <no****@doamin.com> wrote in message
news:u9**************@TK2MSFTNGP14.phx.gbl...
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 has and
it's 0 which is good... that means it has jump down to the next row and
focus is in the first cell.
When I then press F5 to jump to the next breakpoint.. it happens again is
breaks in the same place... and the ColumnIndex is now 1... and when I go
out from breakmode... the cursor is in the second cell of the next row..
which means it Skipped the first cell... and that's not acceptable!

The Call stack doesn't give me anything at all here.. and I have no idead
why this is happening,,, can anyone give me a tip on what to do here?

/Lars


Nov 21 '05 #3
Excellent, glad you got it to work.

And now, we add yet another link to our favorites under bugs. ;-)

--
Gerry O'Brien
Visual Basic .NET MVP
"Lars Netzel" <no****@doamin.com> wrote in message
news:ew**************@TK2MSFTNGP12.phx.gbl...
Thanx... but I found the solution... It's a bugg in the DataGrid Control.

http://www.dotnet247.com/247reference/msgs/5/25233.aspx

You need to override a Method in the DataGridClass, read on the link
below. Microsoft posts an answer at the bottom.

/Lars Netzel

"Gerry O'Brien [MVP]" <gk******@hotmail.com> wrote in message
news:eI**************@TK2MSFTNGP11.phx.gbl...
What is your next breakpoint set on?

Have you tried using F11 to step through each line of code?

You might also try adding conditional breakpoints and have the IDE stop
when the Column index changes or when it is set to a specifc value.

--
Gerry O'Brien
Visual Basic .NET MVP
"Lars Netzel" <no****@doamin.com> wrote in message
news:u9**************@TK2MSFTNGP14.phx.gbl...
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 has
and it's 0 which is good... that means it has jump down to the next row
and focus is in the first cell.
When I then press F5 to jump to the next breakpoint.. it happens again
is breaks in the same place... and the ColumnIndex is now 1... and when
I go out from breakmode... the cursor is in the second cell of the next
row.. which means it Skipped the first cell... and that's not
acceptable!

The Call stack doesn't give me anything at all here.. and I have no
idead why this is happening,,, can anyone give me a tip on what to do
here?

/Lars



Nov 21 '05 #4

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

Similar topics

1
by: John Martin | last post by:
I've made an .NET application where the contents of a datagrid (dgr1) is changed when the user changes the selection in a drop-down list (drd1). This has works fine as a beginning. Then I want to...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
10
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I...
10
by: Joe | last post by:
Hi, Tried using the FindControl() but no luck in finidng this damn textbox having id txtFirstName. Can someone help me with this method? This is what I have been doing but it doesn't work, ...
4
by: Jeff User | last post by:
Hi I tryed to solve this problem over in the framework.asp group, but still am having trouble. Hope someone here can help. using .net 1.1, VS 2003 and C# I have an asp.DataGrid control with a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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
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,...

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.