If the custom list you’re trying to view in datasheet mode has grouping, the QuickEdit feature will be disabled.
Create a new view in which there are no grouping and you should be able to edit the list in datasheet mode
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career