G
Guest
Hi friends!
I've a DataSet with 2 tables inside. The relation and mappings between both
are set and ok.
I need to create a Master/Detail datagrid based on DataBindings.
'DataGrid1 shows the Master view and TextBox1 shows one field's content, as
follow:
DataGrid1.SetDataBinding(DataSet1, "MasterTable")
TextBox1.DataBindings.Add(New Binding("Text", DataSet1, "MasterTable.ID"))
'DataGrid2 show the Details view
DataGrid2.SetDataBinding(DataSet1, "MasterTable.MasterTableToChildTable")
It's working fine. But now I need to set an expression to filter the rows
showed in DataGrid1. If I do that, the rows won't be filtered because de
DataGrid1 is bound to the DataSet directly instead of a DataView.
I'd like to know how can I apply a RowFilter property and have the child
DataGrid working as well.
Thanks
I've a DataSet with 2 tables inside. The relation and mappings between both
are set and ok.
I need to create a Master/Detail datagrid based on DataBindings.
'DataGrid1 shows the Master view and TextBox1 shows one field's content, as
follow:
DataGrid1.SetDataBinding(DataSet1, "MasterTable")
TextBox1.DataBindings.Add(New Binding("Text", DataSet1, "MasterTable.ID"))
'DataGrid2 show the Details view
DataGrid2.SetDataBinding(DataSet1, "MasterTable.MasterTableToChildTable")
It's working fine. But now I need to set an expression to filter the rows
showed in DataGrid1. If I do that, the rows won't be filtered because de
DataGrid1 is bound to the DataSet directly instead of a DataView.
I'd like to know how can I apply a RowFilter property and have the child
DataGrid working as well.
Thanks