How to allow the user to input a value in the data grid widget?