473,320 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

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
Nov 16 '05 #1
3 6527
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;
--
-Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
"MajorTom" <m.********@NOverizon.net.do> wrote in message
news:es**************@TK2MSFTNGP09.phx.gbl...
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

Nov 16 '05 #2
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
"Sijin Joseph" <si*********@hotmail.com> wrote in message
news:Os**************@TK2MSFTNGP11.phx.gbl...
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;
--
-Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
"MajorTom" <m.********@NOverizon.net.do> wrote in message
news:es**************@TK2MSFTNGP09.phx.gbl...
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


Nov 16 '05 #3
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
"MajorTom" <m.********@NOverizon.net.do> wrote in message
news:es**************@TK2MSFTNGP09.phx.gbl...
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

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wayne | last post by:
I am trying to bind a List<T> to a dropdownlist and have the dropdownlist display a property of the class that the list contains. I have the following public class Test { private int number;...
2
by: Tomdhu | last post by:
I've got a Contacts & Events database in Access 2K where contacts attend various events. At present, where I want to group e-mail all the attendees who are going to attend a particular event, I...
4
by: eksamor | last post by:
I have a simple linked list: struct element { struct element *next; int start; }; struct list { struct element *head;
2
by: deathtospam | last post by:
Is it possible to Databind to a strongly-typed list of integers (List<int>) ? I want to use <%# Databinder.Eval(Container.DataItem, "XXX") %inside a Repeater control in my ASPX page, but I don't...
1
by: krishnakant Mane | last post by:
hello, I have read about zope and found it very good. but right now I am a bit confused about one project I have just procured. it is supposed to be a simple 3 tear application. the front end...
1
by: zoro25 | last post by:
Hi, I'm pretty new to Access and I'm not too sure how to handle the following. There is an atual DB in access and I need to add a search tool to it. More exactly, we have a field name and a...
5
by: adam.kleinbaum | last post by:
Hi there, I'm a novice C programmer working with a series of large (30,000 x 30,000) sparse matrices on a Linux system using the GCC compiler. To represent and store these matrices, I'd like to...
2
by: diwakar09 | last post by:
i could not find the suitable forum link so i am specifying my problem here when i boot up my system it stucks on the very first screen, where we get the option of "press del to enter the setup"...
3
by: sweta patel | last post by:
i have tried this javascript cod <HTML> <HEAD> <script language=JavaScript> function ShowAvailableDrives() { document.write(GetDriveList());
10
by: TP | last post by:
Hi everybody, I have a question about the difference of behavior of "len" when applied on tuples or on lists. I mean: $ len( ( 'foo', 'bar' ) ) 2 $ len( ( 'foo' ) ) 3 $ len( )
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.