Click here to Skip to main content
15,921,694 members
Home / Discussions / Database
   

Database

 
GeneralSQL data to create directories Pin
gman4415-Apr-03 4:41
gman4415-Apr-03 4:41 
GeneralRe: SQL data to create directories Pin
Richard Deeming15-Apr-03 6:51
mveRichard Deeming15-Apr-03 6:51 
GeneralRe: SQL data to create directories Pin
si_6917-Apr-03 5:46
si_6917-Apr-03 5:46 
Generalreading a single record from SQL Pin
gollnick15-Apr-03 0:47
gollnick15-Apr-03 0:47 
GeneralRe: reading a single record from SQL Pin
perlmunger16-Apr-03 5:39
perlmunger16-Apr-03 5:39 
QuestionMS Access & BatchUpdate throw ADO ? Pin
rosen14-Apr-03 3:50
rosen14-Apr-03 3:50 
Generalsearch syntax problem Pin
ylaine14-Apr-03 1:09
ylaine14-Apr-03 1:09 
GeneralDataViewManager, Rowfilters and Child Filtering Pin
xpurt14-Apr-03 0:44
xpurt14-Apr-03 0:44 
Hi can anyone here help with this?

I have a dataset that is populated with data from two related tables. I create a DataViewManager to manage views of the data based on dynamically created queries which are passed to the DataViewManager.RowFilter. The DataViewManager is bound to a datagrid which displays the results of the queries. The datagrid also displays the child data relating to each row by clicking on the + sign at the start of each row.

Currently the queries I am adding to the RowFilter are based on the parent table, for example;

dvManager.DataViewSettings["client"].RowFilter = "((region = 'Blah') OR ((region = 'Bluh')) AND ((area = 'Here') OR (area = 'There')) AND (gender = 'Male')";

- This approach works well, however I now need to filter records based on values in the child table. If I wanted to do this by going back to the {MSAccess}database I would be creating an SQL statement such as the one below;

SELECT DISTINCT client.*
FROM clientcat AS clientcat_1, clientcat AS clientcat_2, client
INNER JOIN clientcat ON client.clientid = clientcat.clientid
WHERE ((client.clientid=[clientcat].[clientid]) AND (clientcat.category='Literature'))
AND ((client.clientid=[clientcat_1].[clientid]) AND (clientcat_1.category='Art Administration'))
AND ((client.clientid=[clientcat_2].[clientid]) AND (clientcat_2.category='Performance'));

According to MSDN the DataViewManager is capable of this functionality, although they do not offer any examples of exactly how to do it.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndive/html/data06142001.asp[^]

My question is - Is it possible to query a DataViewManager in this way and can someone show me how? Smile | :)
GeneralDynamic SQL with in a stored procedure Pin
Venkatraman13-Apr-03 17:56
Venkatraman13-Apr-03 17:56 
GeneralPersonal Sql Server Pin
Steve McLenithan13-Apr-03 9:14
Steve McLenithan13-Apr-03 9:14 
GeneralRe: Personal Sql Server Pin
perlmunger16-Apr-03 6:01
perlmunger16-Apr-03 6:01 
GeneralRe: Personal Sql Server Pin
Steve McLenithan16-Apr-03 6:15
Steve McLenithan16-Apr-03 6:15 
Generalupdating 2 tables containing same value Pin
ylaine11-Apr-03 6:52
ylaine11-Apr-03 6:52 
GeneralRe: updating 2 tables containing same value Pin
Ixpah11-Apr-03 7:04
Ixpah11-Apr-03 7:04 
GeneralRe: updating 2 tables containing same value Pin
Ray Cassick11-Apr-03 8:47
Ray Cassick11-Apr-03 8:47 
GeneralADO.net connect to a remote access database Pin
Crossroad10-Apr-03 9:35
Crossroad10-Apr-03 9:35 
GeneralRe: ADO.net connect to a remote access database Pin
J. Dunlap10-Apr-03 9:49
J. Dunlap10-Apr-03 9:49 
GeneralO/R mapping tools Pin
Avaril9-Apr-03 22:46
Avaril9-Apr-03 22:46 
QuestionCode generator? Pin
Roger Alsing9-Apr-03 22:17
Roger Alsing9-Apr-03 22:17 
AnswerRe: Code generator? Pin
Davy Mitchell9-Apr-03 23:09
Davy Mitchell9-Apr-03 23:09 
GeneralRe: Code generator? Pin
Roger Alsing10-Apr-03 0:01
Roger Alsing10-Apr-03 0:01 
GeneralRe: Code generator? Pin
coge13-Apr-03 12:08
coge13-Apr-03 12:08 
QuestionHOWTO: Insert SQL NULL using ADO Recordset and VC++? Pin
Dan Thurman9-Apr-03 8:52
Dan Thurman9-Apr-03 8:52 
AnswerRe: HOWTO: Insert SQL NULL using ADO Recordset and VC++? Pin
Le centriste11-Apr-03 7:17
Le centriste11-Apr-03 7:17 
GeneralRe: HOWTO: Insert SQL NULL using ADO Recordset and VC++? Pin
Dan Thurman11-Apr-03 8:30
Dan Thurman11-Apr-03 8:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.