Home All Groups Group Topic Archive Search About

VS 2003 DataGrid, Bug or Feature???

Author
12 Apr 2005 3:09 AM
DazedAndConfused
When first loaded, the first column of the first row of a DataGrid is back
colored (this is true of VS 2002 VB & VS 2003 VB and is not a problem).

When navigating programmatically through the data grid using BindingContext
the back colored value(Column 1, Top Row)  does not change as the grid
scrolls, all other columns and rows change including columns of the same
row.

This happens with arrays and DataSets. Once a row (or any cell in a column
except column 1) is clicked the offending field shows the correct value and
you can navigate up and down and the cell updates correctly.

If you click a different cell in column 1, then that cell becomes back
colored and no longer displays the correct value once you navigate past the
scroll window.

This does not happen with VS 2002, just VS 2003.

Is this a feature or a bug?

How do you fix it and/or get around it?

Has anybody else noticed this?

Does any body know why?

I have tested it on three different machines, both within the IDE and as a
stand alone app, VS 2002 doesn't happen, VS 2003 it does.

Author
12 Apr 2005 3:49 PM
Cor Ligthert
Dazed

In the way you write it, I assume that it is a bug. Did you try the
servicepack SP1  for Net 1.1 already?

http://www.microsoft.com/downloads/details.aspx?familyid=a8f5654f-088e-40b2-bbdb-a83353618b38&displaylang=en

I don't know if it is a bug by the way

Cor
Author
12 Apr 2005 5:37 PM
DazedAndConfused
SP's are up to date. Problem seems to be with the last cell in focus
"Hanging" when the DataGrid goes out of focus (due to clicking on the
button(s) for navigation).

DataGrid1.Focus()
or
DataGrid1.Focus()
btnNext.Focus()

fixes the problem, I guess VS 2002 just handles it differently.


Show quoteHide quote
"Cor Ligthert" <notmyfirstn***@planet.nl> wrote in message
news:eINw0c3PFHA.1172@TK2MSFTNGP12.phx.gbl...
> Dazed
>
> In the way you write it, I assume that it is a bug. Did you try the
> servicepack SP1  for Net 1.1 already?
>
> http://www.microsoft.com/downloads/details.aspx?familyid=a8f5654f-088e-40b2-bbdb-a83353618b38&displaylang=en
>
> I don't know if it is a bug by the way
>
> Cor
>
Author
14 Apr 2005 1:12 PM
DazedAndConfused
SP's are up to date. Problem seems to be with the last cell in focus
"Hanging" when the DataGrid goes out of focus (due to clicking on the
button(s) for navigation).

DataGrid1.Focus()
or
DataGrid1.Focus()
btnNext.Focus()

fixes the problem, I guess VS 2002 just handles it differently.

Show quoteHide quote
"Cor Ligthert" <notmyfirstn***@planet.nl> wrote in message
news:eINw0c3PFHA.1172@TK2MSFTNGP12.phx.gbl...
> Dazed
>
> In the way you write it, I assume that it is a bug. Did you try the
> servicepack SP1  for Net 1.1 already?
>
> http://www.microsoft.com/downloads/details.aspx?familyid=a8f5654f-088e-40b2-bbdb-a83353618b38&displaylang=en
>
> I don't know if it is a bug by the way
>
> Cor
>