4
Answers

clear the gridview when the page load

Photo of SARAVANA PERUMAL

SARAVANA PERUMAL

15y
4.2k
1

I develope simple application.. In this application output contains two gridview and two buttons.. When i click first button corresponding result show in first gridview.When i click second button result show in second gridview... That time First gridview also display.. I want to show second gridview only......... Anybody know answer reply me....
 
 
Thanks...
saravana

Answers (4)

0
Photo of Rupesh Kahane
NA 10.6k 866.8k 7y
Please run bellow script .
you will get all tables information with number of rows
(you can modify this according to your requirement)
  1. CREATE TABLE #counts  
  2. (  
  3.     table_name varchar(255),  
  4.     row_count int  
  5. )  
  6.   
  7. EXEC sp_MSForEachTable @command1='INSERT #counts (table_name, row_count) SELECT ''?'', COUNT(*) FROM ?'  
  8. SELECT table_name, row_count FROM #counts ORDER BY table_name, row_count DESC  
  9. DROP TABLE #counts