Posted on 2006-11-10
I am trying to create a DataGridView that is bound to my database. I've added a DataSource and, when I bind to it, the data displays properly. However, I would like to have this DataSource change depending on what item is selected in a neighboring TreeView. So, if I select item1 in the TreeView, the DataGridView's DataSource is filtered on the value of item1. If I select item2, the DataSource is filtered on the value of item2. I know how to do this programatically, just wondering if there is a way to do it via VS.NET drag-and-drop.