title: Gridview not appearing
body: <p>I somehow come to very strange error. My gridview won't appear. Here is my code - first is my <code>.aspx</code> markup:</p>
  
  <pre><code>&lt;asp:GridView ID="Zakljucani" runat="server" AutoGenerateColumns="False" 
      onrowcommand="Zakljucani_RowCommand" PageSize="300" Height="127px" 
      style=" visibility:visible; border-color:Red" &gt;
      &lt;Columns&gt;
          &lt;asp:BoundField DataField="KorisnickoIme" HeaderText="Korisnicko ime" Visible="true" /&gt;
          &lt;asp:BoundField DataField="Mail" HeaderText="Mail" Visible="true" /&gt;
          &lt;asp:BoundField DataField="DatumZakljucavanja" 
                  HeaderText="Datum i vrijeme zaključavanja" /&gt;
          &lt;asp:BoundField DataField="HoursElapsed" HeaderText="Protekli sati" /&gt;
          &lt;asp:TemplateField HeaderText="Otključaj"&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:Button ID="Button1" CommandArgument='&lt;%#Eval("KorisnickoIme")%&gt;'  runat="server" Enabled='&lt;%#Convert.ToInt32(Eval("HoursElapsed"))&gt;24%&gt;' Text="Otključaj" /&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>And this is my code </p>
  
  <pre><code> protected void Page_Load(object sender, EventArgs e)
   {
       GetData();       
   }
  
   private void GetData()
   {
       string CS = ConfigurationManager.ConnectionStrings["Konekcija"].ConnectionString;
  
       using (SqlConnection con = new SqlConnection(CS))
       {
           SqlCommand cmd = new SqlCommand("SpZakljucaniRacuni", con);
           cmd.CommandType = CommandType.StoredProcedure;
  
           con.Open();
  
           Zakljucani.DataSource = cmd.ExecuteReader();
           Zakljucani.DataBind();
       }
  }
  
  private void EnableUserAccount(string UserName)
  {
      string CS = ConfigurationManager.ConnectionStrings["Konekcija"].ConnectionString;
  
      using (SqlConnection con = new SqlConnection(CS))
      {
          SqlCommand cmd = new SqlCommand("OtkljucajZakljucaniRacun", con);
          cmd.CommandType = CommandType.StoredProcedure;
  
          SqlParameter paramUserName = new SqlParameter()
               {
                  ParameterName = "@KorisnickoIme",
                  Value = UserName
               };
  
          cmd.Parameters.Add(paramUserName);
  
          con.Open();
          cmd.ExecuteNonQuery();
      }
  }
  
  protected void Zakljucani_RowCommand(object sender, GridViewCommandEventArgs e)
  {
      EnableUserAccount(e.CommandArgument.ToString());
      GetData();
  }
  </code></pre>
  
  <p>The problem is that the gridview doesn't appear. Today it worked fine, and later it does not.</p>
  
  <p>I don't know if there is an error, or is problem when binding. Hope we will find mistake if there is one.</p>