Click here to Skip to main content
15,868,078 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir,
now i,m am in trainig period when i work with gridview there is no error but it does not appear in web page why?
Posted

 
Share this answer
 
Refer some Asp.Net books to have some better idea.
 
Share this answer
 
code is below
Gridview1.Datasource = dtData;
Gridview1.Databind();
here dtData is DataTable contains data which you were retrieved from database. Please check while debugging, the DataTable dtData contains data or not. Also confirm, do you have any javascript error in the browser status bar when running.
 
Share this answer
 
If you're being trained, why do you not have a trainer to ask ?

The most likely answer is that you didn't DataBind or the datasource was empty. You can style a GridView so that it shows something if there is no data to show, if you do that, you'll know for sure.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900