title: RowDataBound : Getting value from dataTable ! Unable to cast object of type 'System.DBNull' to type 'System.String'
body: <p>I'm trying in RowDataBound event to get a value from dataTable for the current editing row:
  Here's my code:</p>
  
  <pre><code>string KK = (string)DataBinder.Eval(e.Row.DataItem, "Name");
  if ( KK == "John" )
  {
  //execute code
  }
  </code></pre>
  
  <p>ERROR : Unable to cast object of type 'System.DBNull' to type 'System.String'. at the first line ( the one with String KK...)</p>
  
  <p>How can I fix that?</p>