I get the following exception message when I try to reopn
a form
window after closing it down (while the main MDI window

is still running)

"An unhandled exception of type 'System.Exception'
occurred in
system.windows.forms.dll
Additional information: DataBinding could not find a row
in the list
that is suitable for all bindings"

This message goes away when I unbind the datagrid object
on the form
from the datasource & datamember. This datagrid is

bind to the Details DataRelation. whereas rest of the form
is bind to
the Master DataTable. Both the master and the

DetailRelation table are in the same dataset.

there is nothing fancy about the datagrid object it shows
int type
fields only and no checkbox or textboxes in it.

I dont know where to go from here. I have researched this
error in
other newsgroup postings and nothing conclusive has

been talked about it.

Thanks in advance

Aamir.

DataBinding could not find a row in the list ... ? by Aamir

Aamir
Fri Oct 24 15:21:35 CDT 2003

me again.
Thanks to this newsgroup posting, my problem is solved.

http://groups.google.com/groups?hl=en&lr=lang_en&ie=UTF-
8&oe=UTF-8&selm=%23EtT4saYDHA.1736%40TK2MSFTNGP10.phx.gbl

One needs to make all the boolean elements in dataset
schema to default to either true or false. I was under the
impression that it will cause problem only when the actual
value from the boolean column of database is Null but nop!
Dot net wil fuss at you even there is no null in the
boolean column and you have to make every check box on
your form to default to something

>-----Original Message-----
>I get the following exception message when I try to reopn
>a form
>window after closing it down (while the main MDI window
>
>is still running)
>
>"An unhandled exception of type 'System.Exception'
>occurred in
>system.windows.forms.dll
>Additional information: DataBinding could not find a row
>in the list
>that is suitable for all bindings"
>
>This message goes away when I unbind the datagrid object
>on the form
>from the datasource & datamember. This datagrid is
>
>bind to the Details DataRelation. whereas rest of the
form
>is bind to
>the Master DataTable. Both the master and the
>
>DetailRelation table are in the same dataset.
>
>there is nothing fancy about the datagrid object it shows
>int type
>fields only and no checkbox or textboxes in it.
>
>I dont know where to go from here. I have researched this
>error in
>other newsgroup postings and nothing conclusive has
>
>been talked about it.
>
>Thanks in advance
>
>Aamir.
>
>.
>