set the datagrids datasource to the dataview of the dataset. If you do this
you can set the dataview filter property.
Ex.
Me.DataSetWellMobile1.Relations.Add( _
New DataRelation( _
relationName:="relWellInfo", _
parentColumn:=Me.DataSetWellMobile1.Tables("TblPeo ple").Columns("UniqueId"),
_
childColumn:=Me.DataSetWellMobile1.Tables("TblWell MobileInfo").Columns("Pers
onId"), _
createConstraints:=True))
Me.DGWellResults.DataBindings.Add(New Binding("DataSource",
Me.DataSetWellMobile1.TblPeople.DefaultView, "relWellInfo"))
Me.DataSetWellMobile1.TblPeople.DefaultView.RowFil ter="Name"
Or
Me.DGWellResults.Datasource=Me.DataSetWellMobile1. TblPeople.DefaultView
Me.DataSetWellMobile1.TblPeople.DefaultView.RowFil ter="Name"
Brad
"Engineerik" <En********@discussions.microsoft.com> wrote in message
news:10**********************************@microsof t.com...
dfjhsqd asked this earlier in the week and I have the same question.
How can I apply a filter to the Master table when using two datagrids
in a MasterDetail relationship?