DataRow does not implement ToString, because it can't tell which cell or sells you want to look at! As a result, ToString calls the default
object
implementation which returns the name of the type "System.Data.DataRow".
Instead of using ToString, get the column data from the row:
string getdetailofQtn = "";
DataRow dr = s1 as DataRow;
if (dr != null && dr.ItemArray.Length > 0)
{
getdetailofQtn = dr[0].ToString();
}
else
...