Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2004

Tip: Looking for answers? Try searching our database.

DataBinding could not find a row in the list that is suitable for all bindings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MajorTom - 22 Jul 2004 02:49 GMT
Hello

I need help. I have a datagrid that have a dataview as datasource.

in the keyup event of one textbox I use dataview.rowfilter = some.text;

when the condition of my rowfilter return some rows, everything works fine.

At the point that the rows returned by the rowfilter is cero (0), the
datagrid don't get the rows even if I use a new rowfilter with results, the
datagrid is empty all the time and if I try to use the datagrid  I get the
error:

DataBinding could not find a row in the list that is suitable for all
bindings

please help

MajorTom
Sijin Joseph - 22 Jul 2004 08:16 GMT
I was just looking through the docs on DataView.RowFilter in MSDN, they have
done the binding after the rowfilter is set. So maybe when you filter the
rows the bindings are not getting updated. Maybe if you refresh the binding
or set the databinding again it might work.

for eg. //Set row filter
          // datagrid.Datasource = dataview;

Signature

-Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> Hello
>
[quoted text clipped - 15 lines]
>
> MajorTom
MajorTom - 22 Jul 2004 14:14 GMT
Thanks for your replied

I use

this.dataGrid1.DataSource = this.ds1MascotasVisitas;
this.dataGrid1.DataSource = dataView1;

and now the datagrid show the records but I get the same error when I tried
to navigate the grid.

(I check the dataview and is working fine with the filter, only the datagrid
lost the records)

I also have some textboxes that are binding to the same dataview.

If you need more information or some code, let me know

Thanks

MajorTom

> I was just looking through the docs on DataView.RowFilter in MSDN, they have
> done the binding after the rowfilter is set. So maybe when you filter the
[quoted text clipped - 25 lines]
> >
> > MajorTom
MajorTom - 23 Jul 2004 13:31 GMT
Hello,

everything is OK know

I have a datetimepicker and the databinding to the value properties, I
change to the text properties and is working as expected

Thank for your help

MajorTom

PD: I don't have to assign the datasource again

> Hello
>
[quoted text clipped - 15 lines]
>
> MajorTom

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.