Defaultview for child table?

Redeye44

New member
Joined
May 3, 2006
Messages
1
Programming Experience
1-3
I have read threads saying you can use defaultview of a datatable to filter the data. What would the code look like to do this for a child table? I have a relation relAccountInvoice and would like to just display invoices with a category of M in a datagrid. This is the code I am trying and it doesn't seem to do anything.


VB.NET:
ds.Tables("Account.relAccountInvoice").DefaultView.RowFilter= "CATID='M'"


Any ideas?
Thanks,
Joe
 
Back
Top