Click here to Skip to main content
15,905,504 members
Home / Discussions / C#
   

C#

 
QuestionSave string... HowTo? Pin
QzRz9-Sep-04 7:02
QzRz9-Sep-04 7:02 
AnswerRe: Save string... HowTo? Pin
Nick Parker9-Sep-04 7:46
protectorNick Parker9-Sep-04 7:46 
GeneralRe: Save string... HowTo? Pin
QzRz9-Sep-04 8:09
QzRz9-Sep-04 8:09 
AnswerRe: Save string... HowTo? Pin
Stefan Troschuetz9-Sep-04 7:50
Stefan Troschuetz9-Sep-04 7:50 
Generalmerging halftoned images Pin
Member 7466529-Sep-04 6:40
Member 7466529-Sep-04 6:40 
GeneralMerge halftone images Pin
Anonymous9-Sep-04 6:21
Anonymous9-Sep-04 6:21 
QuestionIntegrating A Custom Editor Within VS IDE 2003... Possible? Pin
Nailbite9-Sep-04 5:25
Nailbite9-Sep-04 5:25 
GeneralMaster-Child DataGrid Filter Issue: Winform DataGrid Pin
Looney Tunezez9-Sep-04 4:50
Looney Tunezez9-Sep-04 4:50 
Hey,
This is driving me up the wall!
I have a set of 3 grids.

They bind correctly as follows
//Parent Grid
dataGrid1.DataSource=parent;
//Child Grid
dataGrid2.DataSource=parent;
dataGrid2.DisplayMember="Parent.Child";
//Grand Child Grid
dataGrid3.DataSource=parent;
dataGrid3.DisplayMember="Parent.ChildToGrandChild";

The relation works beautifully.Been working for months now.

Here is the issue:
I have to filter out data in the child grid ie dataGrid2, which in turn will affect dataGrid3 which is fine.

so I have tried using the RowFilter property of the DefaultView exposed by the DataTable, but to no avail.
These are the methods i have tried.
1. ((System.Data.DataTable) dataGrid2.DataSource).ChildRelations["Parent.Child"].ChildTable.DefaultView.RowFilter = " [FilterMeNow] = 1";
does not work.
2. I tried setting up the filter before establishing the databinding but after the relation is set, again it wont work.

3. Googling it leads to me to think setting the row filter is the way to go....but nothing seems to happen.

I know RowFilter works because I have been using it for single grid all year long.
So how do i go about using it in master-child relation datagrid.

Am I just supposed to refresh the grids after they are bound, resulting in the row filter to take affect. If so, how?

A frusturated Looney Tunezez

Cheers!
<bold>Looney Tunezez

"If you build it....
.....BUGS will come!" -JB


Application.Run(new Form1(this.Dispose())); <--WHAT :wtf::confused::eek:


"Stability. What an interesting concept" - Chris Maunder
<bold>

GeneralClearing the clipboard Pin
Garrick Hensberg9-Sep-04 4:36
Garrick Hensberg9-Sep-04 4:36 
GeneralRe: Clearing the clipboard Pin
Dave Kreskowiak9-Sep-04 5:44
mveDave Kreskowiak9-Sep-04 5:44 
GeneralTo minimize all opened windows Pin
Chauhan9-Sep-04 2:59
Chauhan9-Sep-04 2:59 
GeneralRe: To minimize all opened windows Pin
Nick Parker9-Sep-04 3:46
protectorNick Parker9-Sep-04 3:46 
Generalnumeric updown column in datagrid Pin
9-Sep-04 1:32
suss9-Sep-04 1:32 
GeneralAPI Calls Pin
Member 368639-Sep-04 1:25
Member 368639-Sep-04 1:25 
GeneralRe: API Calls Pin
Nick Parker9-Sep-04 3:58
protectorNick Parker9-Sep-04 3:58 
QuestionHow to use COM DLL in ASP.NET using C# Pin
zahid_ash9-Sep-04 0:39
zahid_ash9-Sep-04 0:39 
AnswerRe: How to use COM DLL in ASP.NET using C# Pin
Dave Kreskowiak9-Sep-04 5:32
mveDave Kreskowiak9-Sep-04 5:32 
GeneralA simple FileSystemWatcher Question ( How to see if file has copied) Pin
Capriono9-Sep-04 0:29
Capriono9-Sep-04 0:29 
GeneralRe: A simple FileSystemWatcher Question ( How to see if file has copied) Pin
Pradeep Shamarao9-Sep-04 3:11
Pradeep Shamarao9-Sep-04 3:11 
GeneralRe: A simple FileSystemWatcher Question ( How to see if file has copied) Pin
mav.northwind9-Sep-04 5:30
mav.northwind9-Sep-04 5:30 
GeneralDelay Pin
erina5488-Sep-04 22:53
erina5488-Sep-04 22:53 
GeneralRe: Delay Pin
sreejith ss nair8-Sep-04 22:56
sreejith ss nair8-Sep-04 22:56 
GeneralDo User Control Pin
jzb8-Sep-04 21:40
jzb8-Sep-04 21:40 
GeneralRe: Do User Control Pin
sreejith ss nair8-Sep-04 22:53
sreejith ss nair8-Sep-04 22:53 
Generalcomparing date in database Pin
xiaowenjie8-Sep-04 20:32
xiaowenjie8-Sep-04 20:32 

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.