In the Gridview
data was bind but the values was not display on the screen.
Code:
gvUserManage.DataSource = dsCandiDeat.Tables[0];
gvUserManage.PageIndex = PageIndex;
gvUserManage.DataBind();
int c= gvUserManage.Rows.Count;
When I get the count of rows in the grid view, it shows 2
Please check AutoGenerateColumns
property of gridview control.
If columns are databoud then it should be false
else it should be true to auto generate columns
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.