473,659 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.rowfil ter = 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 6564
I was just looking through the docs on DataView.RowFil ter 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.Dataso urce = dataview;
--
-Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
"MajorTom" <m.********@NOv erizon.net.do> wrote in message
news:es******** ******@TK2MSFTN GP09.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.rowfil ter = 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.ds1Mascota sVisitas;
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*********@ho tmail.com> wrote in message
news:Os******** ******@TK2MSFTN GP11.phx.gbl...
I was just looking through the docs on DataView.RowFil ter 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.Dataso urce = dataview;
--
-Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
"MajorTom" <m.********@NOv erizon.net.do> wrote in message
news:es******** ******@TK2MSFTN GP09.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.rowfil ter = 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.********@NOv erizon.net.do> wrote in message
news:es******** ******@TK2MSFTN GP09.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.rowfil ter = 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
220
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; public string Number
2
2759
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 run a macro which runs a select query which strips out and exports a list of their e-mail addresses ( separated by commas) into a text file. I then copy the CSV e-mail addresses and paste them into the BCC field of Outlook. I'd love to have a...
4
9820
by: eksamor | last post by:
I have a simple linked list: struct element { struct element *next; int start; }; struct list { struct element *head;
2
12662
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 know how to get at the List<intvalue. -= Tek Boy =-
1
1173
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 will be a thin client which we will develop using wxpython. We are using MySQL for the database and I need to find out a suitable application server where I can do just the following. 1. write my business logic which will actually be the workhorse....
1
1602
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 field description in the main table. I want to create a menu for an user to query this table to find the specific records that contains key words. For example, a record name would be "Approvals Policy" and the description would be Cheque...
5
9706
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 implement the sparse matrices as a doubly-linked list, in which each non-zero cell is stored roughly as follows: int rownum int colnum
2
1967
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" and when i pressed del it hungs up. could nay one tell me the cause of this problem my board is of gigabyte intell chipset 915 series.
3
1741
by: sweta patel | last post by:
i have tried this javascript cod <HTML> <HEAD> <script language=JavaScript> function ShowAvailableDrives() { document.write(GetDriveList());
10
1509
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
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8525
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.