It's filtering the parent form because you're grabbing the reference from the parent form. If you want it to only filter the child then you'll need a copy of that for the child and use that copy to data bind.
You could change the code like this:
private void Break_ValueChanged(object sender, EventArgs e)
{
DataView dvBreaks = ParentForm.CurrentUser
.Cache
.GetERPLuTableFromCache( Db.CustomDbMetaData.CachedTables.Breaks )
.DefaultView
.ToTable()
.DefaultView;
if( Convert.ToString( Break.Value ) != string.Empty ) {
dvBreaks.RowFilter = "BREAK = '" + Convert.ToString( Break.Value ) + "'";
}
}
or, if GetERPLuTableFromCache
is a DataTable
:
DataView dvBreaks = ParentForm.CurrentUser
.Cache
.GetERPLuTableFromCache( Db.CustomDbMetaData.CachedTables.Breaks )
.Copy()
.DefaultView;