S
SStory
OK here's what I want to do...
I am writing a case managment system for law enforcement.
Case is the central table.
It has Event, Victim, Witness, Suspect (relatedt to it via case_ID)
I have a Win form that has a datagrid and I have a data adapter for each of
these tables.
I put them all in dsCases1 (dataset) using fill method for each da.
I placed dsCases1 in a dataviewmanager object (DVM). (hoping I could filter
each table).
I really want Case to show in the grid and the other to only show if the
item is expanded--as links.
Above all of this I have a filter tab which allows to filter by CaseID or
Criminal Code# or Victim Name or Suspect Name.
To do this I try to do
DVM.DataViewSettings("Victim").RowFilter="v_fname='" & txtVicFirstName.text
& "'"
This will work in a sense but not as I hoped. It still shows all cases
because case is the top table in the datagrid, and if I click on the victims
tables under each case Item, only the one that has the victim with v_fname=
to the search spec, will appear.
What I want to be able to do, is show these related tables below, but when
searching only show the cases which have these victims in them, or if by
criminal code, show only case Items which have that criminal code. Is
there are way to do this and leave cases as the default table?
ie.
search for criminal code 15-A-025 and get a data grid like this (only cases
with a related victim table(record) having 15-A-025 would be in the grid.
CASE#
1
-(when expanded it would allow me to view the other related tables)
20
36
72
80
100
Any help would be appreciated.
Thanks in advance...
Shane
I am writing a case managment system for law enforcement.
Case is the central table.
It has Event, Victim, Witness, Suspect (relatedt to it via case_ID)
I have a Win form that has a datagrid and I have a data adapter for each of
these tables.
I put them all in dsCases1 (dataset) using fill method for each da.
I placed dsCases1 in a dataviewmanager object (DVM). (hoping I could filter
each table).
I really want Case to show in the grid and the other to only show if the
item is expanded--as links.
Above all of this I have a filter tab which allows to filter by CaseID or
Criminal Code# or Victim Name or Suspect Name.
To do this I try to do
DVM.DataViewSettings("Victim").RowFilter="v_fname='" & txtVicFirstName.text
& "'"
This will work in a sense but not as I hoped. It still shows all cases
because case is the top table in the datagrid, and if I click on the victims
tables under each case Item, only the one that has the victim with v_fname=
to the search spec, will appear.
What I want to be able to do, is show these related tables below, but when
searching only show the cases which have these victims in them, or if by
criminal code, show only case Items which have that criminal code. Is
there are way to do this and leave cases as the default table?
ie.
search for criminal code 15-A-025 and get a data grid like this (only cases
with a related victim table(record) having 15-A-025 would be in the grid.
CASE#
1
-(when expanded it would allow me to view the other related tables)
20
36
72
80
100
Any help would be appreciated.
Thanks in advance...
Shane