Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

enter image description here

I have added a gridview in my Visual Studio project. The gridview is set to visible. After deploying the project the GridView is not displayed, but I don't know why. What can be the problem? I feel really confused.

share|improve this question

1 Answer 1

Are you binding any data to the grid view ?

gridView1.Datasource = MyDs/MtTable...

gridView1.DataBind();

If you are using any UpdatePanels with UpdateMode = Conditional, then after above code, use

MyUpdatePanel.Update()

Is your data source having any records ?

You can check the source.Rows.count (or similar properties)

Did you set AutoGenerateColumns ?

Try adding custom columns

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.