Binding a Grid to a List Returning Business Rule using GetByMethod

I last posted about creating a business rule to return a list of objects. Today, I will take that a step further and bind the List<IAccount> to a DataGrid using the built-in GetByMethod for binding the list.

In my last post I created a business rule that returned a list of child accounts for the current account named GetChildAccounts. Now, we will create a new account level tab to display this data. Let’s start with the following:

  1. Create a new form under the account entity (I don’t typically use the wizards)
  2. Add a DataSource to the form and set the following properties on it:
    1. Entity Type = Account
    2. Get By Method = GetChildAccounts
    3. Is Collection = True
    4. Source = Account
  3. Now add a DataGrid and select the DataSource and add your columns as usual.

You’ll end up with the following:

Quite nice and an easy peice of work. I just love the new platform.


Ryan Farley

Ryan Farley is the Director of Development for Customer FX and creator of He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

1 Comment

  1. Hmmm……so using IList means I can’t have Edit, Delete functionality?

    How do you wire up an Edit or Delete button to the grid? Maybe it means having a ‘normal’ button outside of the grid (am not a big fan of the Edit and Delete Columns…..)


Submit a Comment

Your email address will not be published.

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!