Home > CRM 2011, JScript > Sub Grid Refresh Event – CRM 2011

Sub Grid Refresh Event – CRM 2011


Sometimes we may need to refresh Parent form, when we Add/Remove records from sub grid (i.e., On Subgrid Refresh). We can achieve this with below steps

Grid Refresh Event

  • Get the “subgrid” id (i.e., Name of the subgrid, we can get it from either ‘Form customization’ or using IE Developer Tool)
  • In parent form, onload() function attach ‘onrefresh’ event to “Subgrid”

 function Form_onload() {
//Set Action on subgrid Refresh
var subGrid = document.getElementById(“{Subgrid ID}“);
if (subGrid) {



//This function fires on subgrid refresh

function fnGridRefresh(){

alert(“Grid refreshed!!!!”);


Hope it helps 🙂

  1. February 14, 2012 at 5:47 PM

    can u help me on this,

    I have a subgrid of the users in the custom entity. How can I have the user delete a row from the subgrid without deleting the user record itself from CRM?

  2. khaledCRM
    September 24, 2013 at 5:11 PM

    hi ,
    i was able to attach event on subgrid with RU11 , but since i have installed RU14 tu event is no longer called.
    thx for help

  3. October 9, 2013 at 9:44 PM
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: