How to check if SqlDataSource.SelectCommand returned null
<p>I have a gridview and sqldatasource.</p>

<pre><code>I'm using : SqlDatasource1.SelectCommand = "Select Name from Table Where RowID=@RowID";
</code></pre>

<p>how can I check if the the selectedcommand returned null ( no value found ) </p>

<p>Thanks</p>
