[Mono-winforms-list] Datagrid.SetDataBinding bug

vlindos at nucleusys.com vlindos at nucleusys.com
Mon Jul 18 09:33:50 EDT 2005


Hi there, small bug:
SetDataSource method must be called before setDataMember, or SetDataMember
will try to reach uninitated yet dataSource:
--- DataGrid.cs.orig    2005-07-15 18:37:42.000000000 +0300
+++ DataGrid.cs 2005-07-18 16:31:58.000000000 +0300
@@ -1653,8 +1653,8 @@

                public void SetDataBinding (object dataSource, string
dataMember)
                {
-                       bool member = SetDataMember (dataMember);
                        bool source = SetDataSource (dataSource);
+                       bool member = SetDataMember (dataMember);

                        if (source == false  && member == false) {
                                return;




More information about the Mono-winforms-list mailing list