# Get Data from DataGrid

The block allows you to retrieve data from table elements.

<table data-header-hidden><thead><tr><th width="190" valign="top"></th><th width="352" valign="top"></th></tr></thead><tbody><tr><td valign="top">Selector</td><td valign="top">[Selector] The identifier of the user interface element.</td></tr><tr><td valign="top">Process ID</td><td valign="top"><p>[Link] A variable that stores the process ID. Indicates which application to work with.</p><p>If the specified application is minimized or its window is covered by other windows, it will be brought to the foreground.</p><p>When working with browsers, the process ID additionally points to the specific browser tab that the block should work with.</p><p>If the property is left empty, or if the process ID variable was not previously assigned at the time of launching the application or opening the browser, the application and browser tab will be determined from the content of the corresponding selector line. The process ID can be obtained, for example, using the Launch Application or Get Process blocks.</p></td></tr><tr><td valign="top">Data Type</td><td valign="top"><p>The type of data to be extracted. Possible values:</p><ul><li>Table - retrieve the full table;</li><li>TableToCsv - saves the table directly to a CSV file as it is extracted;</li><li>CellValue - get the value of a cell;</li><li>ColumnCount - get the number of columns;</li><li>RowCount - get the number of rows.</li></ul></td></tr><tr><td valign="top">Column Index</td><td valign="top">[Number] The index of the column. This property is used if the data type is selected as "CellValue".</td></tr><tr><td valign="top">Row Index</td><td valign="top">[Number] The index of the row. This property is used if the data type is selected as "CellValue".</td></tr><tr><td valign="top">CSV File</td><td valign="top">[Text] The name and path to the CSV file for saving the table. Used if the data type is selected as "TableToCsv".</td></tr><tr><td valign="top">Timeout</td><td valign="top">[Number] The maximum timeout in seconds.</td></tr><tr><td valign="top">Result</td><td valign="top">[Data Table/Text/Number] The result is returned depending on the selected data type.</td></tr><tr><td valign="top">Error Handling Level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are handled.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message Level</td><td valign="top"><p>Select the message level that the blocks will output during operation. Possible values:</p><ul><li>"Default" - default;</li><li>"Release" - output is disabled;</li><li>"Debug" - outputs main information;</li><li>"Detailed" - outputs detailed information.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error Text</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block's work.</td></tr></tbody></table>
