Data Grid control returning error constants!
Posted on 2000-03-27
I'm using a data grid control to display elements from a database.
My requirement needs that i populate different data from different tables in the database depending on the menu items i select.
the problem I'm facing is that when i chose a menu item, the records get populated in the data grid control correctly.
if i select a field in the data grid and then chose another menu item that causes the contents of the data grid control to change, i get a message box saying : "The current row is not available"
After i click on "OK", i get the next set of reports correctly listed in the control.
Basically the data is getting populated correctly, the only thing bothering us is the message box each time the data needs to be changed.
Is there a way we could eliminate this message box from appearing?
These are a few findings:
we looked up the MSDN library and found that this message is displayed when the following error constant is returned : dbgNoCurrentRow
The value returned by this is 7008.
however we are unable to find out the reson why this is being logged and how we can avoid this.
Kindly enlighten us.