The Textbox in the Visual Studio defaultly contains the textmode property s password So it means while displaying it in to the grid, you can add the textbox as template field and bidn the textbox text property as password.
Now to store the password, in the database, you need to use some encryption mechenuism which will make your passowrd as encrypted mode nd then you can store it in binary format. While retrieving , again you need to decrypt with the same alorightm and use it.
By thsi way you can fullfill your both the criterias.
Pawan Awasthi(DNS MVM)
+91 8123489140 (whatsApp), +60 14365 1476(Malaysia)