title: Single selection grid
body: <p>Hello I am trying to add selection logic to my material ui grid(table).</p>
  <p>This is what I return,</p>
  <pre><code>return (
      &lt;Paper sx={{ width: &quot;100%&quot;, overflow: &quot;hidden&quot; }}&gt;
        &lt;Table style={{ width: &quot;100%&quot; }}&gt;
          &lt;CatalogRightGridHeader selected={selected} /&gt;
          &lt;TableBody xs={12} style={{ width: &quot;100%&quot; }}&gt;
            {value.map((row) =&gt; {
              return (
                &lt;TableRow hover role=&quot;checkbox&quot; tabIndex={-1} key={row.nodeId}&gt;
                  &lt;TableCell style={{ width: &quot;10px!important&quot;, padding: 2 }}&gt;
                    &lt;Checkbox/&gt;
                  &lt;/TableCell&gt;
                  {row.rowItems
                    .sort(
                      (row1, row2) =&gt; row1.column.sequence - row2.column.sequence
                    )
                    .map((column) =&gt; {
                      return column.column.dataType === &quot;DATE&quot; ? (
                        &lt;TableCell
                          key={column.id}
                          align={column.align}
                        &gt;
                          {format(
                            new Date(parseInt(column.value)),
                            dateFormat(),
                            new Date()
                          )}
                        &lt;/TableCell&gt;
                      ) : (
                        &lt;TableCell
                          key={column.id}
                          align={column.align}
                        &gt;
                          {column.value}
                        &lt;/TableCell&gt;
                      );
                    })}
                &lt;/TableRow&gt;
              );
            })}
          &lt;/TableBody&gt;
        &lt;/Table&gt;
      &lt;/Paper&gt;
    );
  </code></pre>
  <p>I want to have a logic on checkbox so whenever I check them I want to get checked row data and it should uncheck whenever I check another checkbox. I would appreciate if u could give me some tips how to do it or help me doing it.</p>