We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Binder.AddRelation returns null

The call to Binder.AddRelation() in the enclosed simple file returns null. This causes the call to .LayoutColumns to fail. I have other more complicated GDBG apps working, but need this to work as a starting point to test some other functionality. Can anyone determine why I get null? Thanks. Simple_4263.zip

1 Reply

AD Administrator Syncfusion Team June 23, 2004 06:12 PM

Changing two things made your code work Ok for me. 1) In addition to setting the DataSource, also set the DataMember. (This is necessary if you have a Dataset as your DataSource. If you use teh parent datatable as the datasource, you would not need to set the DataMember). LoadData(); this.gridDataBoundGrid1.DataSource = ds; this.gridDataBoundGrid1.DataMember = "LastNames"; 2) change the second LayoutColumns line to hier1.LayoutColumns( new string[] { "Last", "First" } );

Loader.
Live Chat Icon For mobile
Up arrow icon