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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Binder.AddRelation returns null

Thread ID:





15643 Jun 23,2004 09:33 PM UTC Jun 23,2004 10:12 PM UTC WinForms 1
Tags: GridControl
Asked On June 23, 2004 09:33 PM UTC

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

Administrator [Syncfusion]
Replied On June 23, 2004 10:12 PM UTC

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" } );


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon