title: react material-ui mui-datatables onRowSelectionChange ID
body: <p>This is my react code. I am using the material UI. I am working with ID related events. the full code is provided below.</p>
  <p>Here, the index ID is getting automatically generated. The issue has to do with that.</p>
  <pre><code>import React, { useState } from &quot;react&quot;;
  import ReactDOM from &quot;react-dom&quot;;
  import MUIDataTable from &quot;mui-datatables&quot;;
  import InputLabel from &quot;@material-ui/core/InputLabel&quot;;
  import MenuItem from &quot;@material-ui/core/MenuItem&quot;;
  import FormHelperText from &quot;@material-ui/core/FormHelperText&quot;;
  import FormControl from &quot;@material-ui/core/FormControl&quot;;
  import Select from &quot;@material-ui/core/Select&quot;;
  
  function Ag() {
    const [responsive, setResponsive] = useState(&quot;vertical&quot;);
  
    const onCellClick = () =&gt; {
      console.log(&quot;sadf&quot;);
    };
    const onRowsDelete = () =&gt; {
      console.log(&quot;remove&quot;);
    };
    const onRowSelectionChange = (ev, ex, ez) =&gt; {
      console.log(ez);
    };
    const columns = [&quot;Name&quot;, &quot;Title&quot;, &quot;Location&quot;];
  
    const options = {
      filter: true,
      filterType: &quot;dropdown&quot;,
      responsive,
  
      onCellClick,
      onRowsDelete,
      onRowSelectionChange,
    };
  
    const data = [
      {
        Id: &quot;1&quot;,
        Name: &quot;sunder&quot;,
        Title: &quot;dlamds&quot;,
        Location: &quot;asdfsa&quot;,
      },
      {
        Id: &quot;2&quot;,
        Name: &quot;cvzx&quot;,
        Title: &quot;sadfsda&quot;,
        Location: &quot;sadfsdacv&quot;,
      },
      {
        Id: &quot;3&quot;,
        Name: &quot;dsfas&quot;,
        Title: &quot;werq&quot;,
        Location: &quot;ewqrwqe&quot;,
      },
      {
        Id: &quot;4&quot;,
        Name: &quot;wqer&quot;,
        Title: &quot;gfdsg&quot;,
        Location: &quot;bvcxb&quot;,
      },
      {
        Id: &quot;5&quot;,
        Name: &quot;ereq&quot;,
        Title: &quot;qwer&quot;,
        Location: &quot;sdafas&quot;,
      },
    ];
  
    return (
      &lt;React.Fragment&gt;
        &lt;MUIDataTable
          title={&quot;ACME Employee list&quot;}
          data={data}
          columns={columns}
          options={options}
        /&gt;
      &lt;/React.Fragment&gt;
    );
  }
  
  export default Ag;
  </code></pre>
  <p>I want to get a data ID instead of an index ID that was automatically generated when I clicked.</p>
  <p>What should I do?</p>