Unable to cast object of type 'System.DBNull' to type 'System.String'. while saving in the database
I am trying to manually create a strongly typed data row
DataSet.PersonRow personRow;
personRow=dataset.Person.NewPersonARow();
personRow.MiddleName=(string)GridView.GetFocusedRowCell("Middlename");
Unable to cast object of type 'System.DBNull' to type 'System.String'. while saving in the database