# DataGrid Details

### dataGridDetailsIndex

The **dataGridDetailsIndex** property has the selection of values from the current row. \
It facilitates tasks such as executing queries in cascade with dropdown controls or other control types.\
e.g.\
If you have two dropdown in the same row and want to filter by the first selected value, then you have create a variable and get the value from the context  as custom function like this:<br>

````javascript
```javascript
context.datasourcecontrol && context.datasourcecontrol[context.dataGridDetailsIndex].FieldToFilter;
```
````

<figure><img src="/files/JoinptSbUtIUErhu2SS3" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://codenull.gitbook.io/dev/configurations/components/forms/fields/datagrid-details.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
