title: show data in gridview using condition
body: <p>I want to check a condition in a grid view e.g.</p>
  
  <pre><code>if(loginid.equels('admin'))
      query = select * from memberlist;
  else
      query = select * from memberlist where memberid like 'operator%';
  </code></pre>
  
  <p>depending on the query the grid view will display the list of members and also where to put this code in .cs or .aspx and how?</p>