Synchronising problem Datagrid and textbox

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top