--- title: "How to use Selected property in the Datagrid Component" slug: "how-to-use-selected-property-in-the-datagrid-component" updated: 2023-01-30T05:57:47Z published: 2023-01-30T05:57:47Z canonical: "help.pillir.io/how-to-use-selected-property-in-the-datagrid-component" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.pillir.io/llms.txt > Use this file to discover all available pages before exploring further. # How to use Selected property in the Datagrid Component? To effectively use the Selected property, the user can do the following: - Create an additional column: eg: "**Flag**" in the table variable that is mapped to the Datagrid - This Flag column will hold values 0 or 1 - Map the '**Selected**' property to the **Flag** column - If a row in the datagrid table is selected the value of flag automatically becomes 1 else 0 Now the selected rows can be used for data manipulations as required by the usecase. ![How to use a selected property](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/How%20to%20use%20a%20selected%20property.png)Sample Image