473,564 Members | 2,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Datagrid, binding and rowfilter

Hello,

I have three DataTables linked hierarchically (parent-child-grandchild) and
bound to three data grids as follows:

dsConeSys = ConeSysDataSet. GetTallyDataSet (studyID, assessmentID);

bsTree.DataSour ce = dsConeSys;
bsTree.DataMemb er = "Tree";
dgvTree.DataSou rce = bsTree;
bnTree.BindingS ource = bsTree;

bsBranch.DataSo urce = bsTree;
bsBranch.DataMe mber = "TreeBranch "; // TreeBranch is a relation
dgvBranch.DataS ource = bsBranch;
bnBranch.Bindin gSource = bsBranch;

bsTally.DataSou rce = bsBranch;
bsTally.DataMem ber = "BranchTall y"; // BranchTally is a relation
dgvTally.DataSo urce = bsTally;
bnTally.Binding Source = bsTally;

where, the Tree-Branch-Tally DataTables represent the
parent-child-grandchild, bs* are binding sources, bn* are binding
navigators, dgv* are data grid views.

This all works fine, with the data in the three grids being nicely
synchronized. However, I want to be able to implement a RowFilter on the
Tally DataTable so only a subset of rows are displayed in the Tally grid. I
tried setting the RowFilter property on the Tally.DefaultVi ew,

dsConeSys.Tally .DefaultView.Ro wFilter = "AssessmentID=0 ";

but that didn't work. Any ideas would be much appreciated. Thanks in
advance.
Sep 28 '06 #1
0 1086

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

Similar topics

1
2247
by: J | last post by:
This works well for binding a Dataset (created from an XML file) to a DataGrid for the entire 'page' table. However I would like to only grab a few rows from the 'page' table (like: select id, description from page where docid = 1). Any help would be greatly appreciated... because this datagrid thing is kicking my ass. Thank you,
1
1382
by: Guy Noir | last post by:
I am having trouble wrapping my head around a datagrid and datasource. I have it working, sort-of, but I'm having trouble refreshing my views. Here's what I have: A dataAdapter and dataSet generated by the wizards. I click my Orders button, grid displays as expected. I click my drop down box to filter out some specific records, every...
2
3282
by: Alpha | last post by:
I have a window application. In one of the form, a datagrid has a dataview as its datasource. Initial filtering result would give the datavew 3 items. When I double click on the datagrid to edit the selected lie item at which case I would pop up a separate dialog box to do so, in the debugging code, the dataview.count would return 0. I get...
2
2479
by: gn | last post by:
I am able to populate a datagrid from an XML variable using the following: Try Dim ds As New DataSet ds.ReadXml(New StringReader(HttpContext.Current.Application("var").ToString)) dataMeet.DataSource = ds dataMeet.DataBind() Catch ex As Exception
3
1566
by: Tim McKinney | last post by:
I have a read-only datagrid that I use to display a heirarchal model of three tables (The example I am setting up uses the Customer, Orders, and Order Detail tables from the northwind database). I load the three tables into a single dataset and then create the relationships. What I want to do is use a separate grid that would display the...
6
1605
by: Richard L Rosenheim | last post by:
I'm sure it can be done, I haven't been able to find the right article yet. I want to be able to filter the records that the datagrid displays, but still have an editable datagrid. That is, I only want records from the table where "State= 'CA'" are to be displayed, but where the user can still edit/add/delete records. The only examples I...
8
3917
by: Richard L Rosenheim | last post by:
I have a dataset containing a parent table related to a child table. The child table contains an ID field (which is configured as autonumber in the datatable), the ID of the parent, plus some addition fields. I'm able to get the datagrid to be properly populate with only the child records relating to the specified parent by setting the...
4
1195
by: Art | last post by:
Hi, Once again, I'm stuck. I want to view a table using a DataGrid. I'd like to fiter that view by criteria on various fields. So far, I've created a DataAdapter, generated a DataSet and used that DataSet as the DataSource for a DataGrid. I put a "fill" in my open form event.
17
2739
by: A_PK | last post by:
I have problem databinding the DataGrid with DataView/DataSet after the filter... I create the following proceudre in order for user to filter as many as they want, but the following code is only allow user to filter the first time, when they tried the second time, the speficied cast error message will prompt one.... I create a mydataset1...
0
8108
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7951
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6260
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...
1
5484
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...
0
5213
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...
0
3643
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...
1
2083
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
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.