So here is my Code that is able to get the header of the datagrid column and find the matching values from the user inputs. For Example if input is \"jdoe\" it will look at
A possible solution would be to use an xpath that finds the line that has a cell with your text and from there to select the button.
example:
//tr[.//td[text()='jdoe']]//button