Synchronising problem Datagrid and textbox

  • Thread starter Thread starter Andrius N
  • Start date Start date
A

Andrius N

New to .NET question-
I have a datagrid, and a few textboxes bound to the same datasource.
When changing a row on the datagrid the textboxes are in sync (as expected).
If I filter the datagrid like this:

ds.Tables("t").DefaultView.RowFilter = aFilter

the datagrid view is not updated unless I do this:

dg1.DataSource = ds.Tables("t").DefaultView

The problem is then the textboxes are not synced with the datagrid any more.

What should I do?? Change the way I filter? Do something with the textboxes?

Thanks

Andrew
 
Back
Top