VS 2003 DataGrid, Bug or Feature???

D

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.
 
D

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.
 
D

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top