Before assigning it to the textbox you can check whether it is null or not by using this

vb Code:
  1. If TypeOf datagrid.Item(0, eRow).Value Is DBNull Then