We will learn to get row data from the Sub-Grids in Dynamics 365 CRM. Before we start, make sure to subscribe to CRM Crate so that you stay up-to-date in field of Dynamics 365.
What are Sub-Grids in Dynamics 365?
You can configure a sub-grid on a form to display a list of records or a chart. The Sub-Grid properties can be accessed in the solution explorer. Under Components, expand Entities, expand the entity you want, and then select Forms. In the list of forms, open the form of type Main. Then on the Insert tab, select Sub-Grid to view sub-grid properties.
Click on the given link to understand more about the Sub-Grids – https://www.crmcrate.com/feeds/create-configure-sub-grid-in-form-crm-dynamics-365-form-customization/
Why do we need to retrieve data from the Sub-Grids?
Consider a business scenario where we have to get the data from a particular Sub-Grid row (record) and perform a dedicated set of operations with the retrieved row data. We can achieve this requirement with help of the below given procedure.
Using GridRowData (Client API reference) for getting row data –
GridRowData (Client API reference)GridRowData also provides methods for retrieving information specific to a record displayed in an editable grid row, including a collection of all the columns included in the row.
Validate the output in Dynamics 365 form –
Thus we learned to get row data from the Sub-Grids in Dynamics 365.