I want to check a condition in a grid view e.g.
if(loginid.equels('admin'))
query = select * from memberlist;
else
query = select * from memberlist where memberid like 'operator%';
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?
Write this code in the place where u need to check d condition and it would work.