Dropdown in selected rows in datatable


My datatable has a editable column to collect user input. In this column, is it possible to have dropdown for some rows, while keep other rows editable?
For example, if row 1 ask for name, row 2 ask for gender, users may type any text in row 1, and only choose from dropdown in row 2?

Thank you