+2006-11-29 Chris Toshok <toshok@ximian.com>
+
+ * DataGrid.cs: keep from going into an infinite loop redrawing a
+ datagrid that has no datasource. Fixes bug #80033.
+
2006-11-29 Chris Toshok <toshok@ximian.com>
* MenuItem.cs: fix the NRE when we assign text (and therefore call
object datasource;
string datamember;
CurrencyManager list_manager;
+ bool refetch_list_manager = true;
bool _readonly;
DataGridRelationshipRow[] rows;
if (list_manager != null)
list_manager = null;
datamember = value;
+ refetch_list_manager = true;
}
}
}
if (list_manager != null)
list_manager = null;
+ refetch_list_manager = true;
}
}
}
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected internal CurrencyManager ListManager {
get {
- if (list_manager == null)
+ if (list_manager == null && refetch_list_manager) {
SetDataSource (datasource, datamember);
+ refetch_list_manager = false;
+ }
return list_manager;
}