Given a DataSet instance, is there any way I can find out which controls are bound to it's tables?
I want to stop everything binding to the DataSet, something like :
foreach (Control cont in dataset.ControlsBoundToMe)
{
if (cont is DataGrid)
{
(cont as DataGrid).DataSource = null;
}
}
Thanks