Big RED X in the datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a datagrid bound to a dataview. When I scroll down with the arrow keys I get a big red X if I try to scroll down off the last (empty) row. Is there an event that I can capture to prevent the user from doing this? Or is there a way to reset once this state has been achieved?

TIA
 
I have a datagrid bound to a dataview. When I scroll down with the arrow
keys I get a big red X if I try to scroll down off the last (empty) row.
Is there an event that I can capture to prevent the user from doing
this? Or is there a way to reset once this state has been achieved?

THe bound datasource is not available anymore due to an exception. So
apparently the empty row creates an exception in your datagrid.

Frans
 
Thanks for the reply. Nice description of why. Any clues as to how? As in how to prevent and or detect programatically (so, I can fix)

Dave
 
Thanks for the reply. Nice description of why. Any clues as to how? As
in how to prevent and or detect programatically (so, I can fix)?
Well, what about starting up the debugger and check what you're
doing. Apparently the object bound to the grid is not as stable as it should
be, check out what's happening when you enter teh new row in the object

FB
 
Back
Top